Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
37 | public function testOpenExisting() |
||
38 | { |
||
39 | $filePath = $this->createTestFileFromFixtures('simple_multiline_file.txt'); |
||
40 | |||
41 | $this->assertTrue($this->filesystem->exists($filePath)); |
||
42 | |||
43 | $textFile = new TextFile($filePath); |
||
44 | |||
45 | $this->assertTrue($this->filesystem->exists($filePath)); |
||
46 | $this->assertInstanceOf('\SplFileObject', $textFile->getSplFileObject()); |
||
47 | $this->assertSame($filePath, $textFile->getSplFileObject()->getRealPath()); |
||
48 | } |
||
49 | } |
||
50 |