Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
19 | public function testOpenNonExisting() |
||
20 | { |
||
21 | $filePath = $this->workspace . DIRECTORY_SEPARATOR . mt_rand(0, 1000) . '.txt'; |
||
22 | |||
23 | $this->assertFalse($this->filesystem->exists($filePath)); |
||
24 | |||
25 | $textFile = new TextFile($filePath); |
||
26 | |||
27 | $this->assertTrue($this->filesystem->exists($filePath)); |
||
28 | $this->assertInstanceOf('\SplFileObject', $textFile->getSplFileObject()); |
||
29 | $this->assertSame($filePath, $textFile->getSplFileObject()->getRealPath()); |
||
30 | } |
||
31 | |||
50 |