Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
31 | public function testTOC() |
||
32 | { |
||
33 | $tocifier = new Tocifier(file_get_contents(__DIR__ . '/test1')); |
||
34 | $this->assertEquals($tocifier->getTOC(), array()); |
||
35 | $this->assertTrue($tocifier->process()); |
||
36 | $this->assertNotNull($tocifier->getTOC()); |
||
37 | |||
38 | ob_start(); |
||
39 | $tocifier->dumpTOC(); |
||
40 | $returned = ob_get_clean(); |
||
41 | $this->assertStringEqualsFile(__DIR__ . '/toc1', $returned); |
||
42 | } |
||
43 | } |
||
44 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.