@@ -22,15 +22,15 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | public function testHtml() |
| 24 | 24 | { |
| 25 | - $tocifier = new Tocifier(file_get_contents(__DIR__ . '/test1')); |
|
| 25 | + $tocifier = new Tocifier(file_get_contents(__DIR__.'/test1')); |
|
| 26 | 26 | $this->assertEquals($tocifier->getHtml(), ''); |
| 27 | 27 | $this->assertTrue($tocifier->process()); |
| 28 | - $this->assertStringEqualsFile(__DIR__ . '/html1', $tocifier->getHtml()); |
|
| 28 | + $this->assertStringEqualsFile(__DIR__.'/html1', $tocifier->getHtml()); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | public function testTOC() |
| 32 | 32 | { |
| 33 | - $tocifier = new Tocifier(file_get_contents(__DIR__ . '/test1')); |
|
| 33 | + $tocifier = new Tocifier(file_get_contents(__DIR__.'/test1')); |
|
| 34 | 34 | $this->assertEquals($tocifier->getTOC(), array()); |
| 35 | 35 | $this->assertTrue($tocifier->process()); |
| 36 | 36 | $this->assertNotNull($tocifier->getTOC()); |
@@ -38,17 +38,17 @@ discard block |
||
| 38 | 38 | ob_start(); |
| 39 | 39 | $tocifier->dumpTOC(); |
| 40 | 40 | $returned = ob_get_clean(); |
| 41 | - $this->assertStringEqualsFile(__DIR__ . '/toc1', $returned); |
|
| 41 | + $this->assertStringEqualsFile(__DIR__.'/toc1', $returned); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | public function testDataHideFromTOC() |
| 45 | 45 | { |
| 46 | - $tocifier = new Tocifier(file_get_contents(__DIR__ . '/test2')); |
|
| 46 | + $tocifier = new Tocifier(file_get_contents(__DIR__.'/test2')); |
|
| 47 | 47 | $this->assertEquals($tocifier->getHtml(), ''); |
| 48 | 48 | $this->assertTrue($tocifier->process()); |
| 49 | 49 | |
| 50 | 50 | // Check the augmented HTML is equal to the original one |
| 51 | - $this->assertStringEqualsFile(__DIR__ . '/test2', $tocifier->getHtml()); |
|
| 51 | + $this->assertStringEqualsFile(__DIR__.'/test2', $tocifier->getHtml()); |
|
| 52 | 52 | |
| 53 | 53 | ob_start(); |
| 54 | 54 | $tocifier->dumpTOC(); |
@@ -5,11 +5,11 @@ |
||
| 5 | 5 | * phpunit --bootstrap tests/Bootstrap.php tests/ |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -spl_autoload_register(function ($class) { |
|
| 8 | +spl_autoload_register(function($class) { |
|
| 9 | 9 | switch ($class) { |
| 10 | 10 | |
| 11 | 11 | case 'Tocifier': |
| 12 | - require_once __DIR__ . '/../code/Tocifier.php'; |
|
| 12 | + require_once __DIR__.'/../code/Tocifier.php'; |
|
| 13 | 13 | break; |
| 14 | 14 | } |
| 15 | 15 | }); |