public function test_twoDifferentOutputHandles_ShouldWriteInDifferentFiles() { $output1 = new Output('id1'); $output2 = new Output('id2'); // cleanup possible earlier failed test runs $output1->destroy(); $output2->destroy(); $output1->write('test 1'); $this->assertTrue($output1->exists()); $this->assertFalse($output2->exists()); $output2->write('test 2'); $this->assertEquals('test 1', $output1->get()); $this->assertEquals('test 2', $output2->get()); $output1->destroy(); $this->assertFalse($output1->exists()); $this->assertTrue($output2->exists()); $output2->destroy(); $this->assertFalse($output2->exists()); }