@@ -54,7 +54,9 @@ |
||
| 54 | 54 | parent::tearDownAfterClass(); |
| 55 | 55 | |
| 56 | 56 | $log = file_get_contents(TMP_DIR . '/cache/debug.log'); |
| 57 | - if(!$log) print_r($log); |
|
| 57 | + if(!$log) { |
|
| 58 | + print_r($log); |
|
| 59 | + } |
|
| 58 | 60 | } |
| 59 | 61 | |
| 60 | 62 | public function setUp() { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | //print_r(scandir(DOKU_TMP_DATA.'pages/')); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | - function setUp() { |
|
| 52 | + function setUp() { |
|
| 53 | 53 | parent::setUp(); |
| 54 | 54 | |
| 55 | 55 | global $conf; |
@@ -70,8 +70,8 @@ discard block |
||
| 70 | 70 | $indexer = idx_get_indexer(); |
| 71 | 71 | $query = array('Bob Ross'); |
| 72 | 72 | $this->assertEquals( |
| 73 | - array('Bob Ross' => array('link' => 1)), |
|
| 74 | - $indexer->lookup($query) |
|
| 73 | + array('Bob Ross' => array('link' => 1)), |
|
| 74 | + $indexer->lookup($query) |
|
| 75 | 75 | ); |
| 76 | 76 | |
| 77 | 77 | print_r($indexer->lookup($query)); |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | strpos($response->getContent(), 'A link to Bob Ross') !== false, |
| 95 | 95 | 'A link to Bob Ross was not in the output' |
| 96 | 96 | ); |
| 97 | - } |
|
| 97 | + } |
|
| 98 | 98 | |
| 99 | 99 | public function testStoryPage() { |
| 100 | 100 | $request = new TestRequest(); |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | //print "wikilink[0]:\n"; |
| 116 | 116 | //print_r(pq($wikilink->contents()[0], $doc)); |
| 117 | 117 | $this->assertEquals($wikilink->contents()[3],'A link to Bob Ross', |
| 118 | - 'The last backlink should be a link to Bob Ross'); |
|
| 118 | + 'The last backlink should be a link to Bob Ross'); |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | public function testBacklinks() { |
@@ -137,6 +137,6 @@ discard block |
||
| 137 | 137 | //print "wikilink[0]:\n"; |
| 138 | 138 | //print_r(pq($wikilink->contents()[0], $doc)); |
| 139 | 139 | $this->assertEquals($wikilink->contents()[3],'A link to Bob Ross', |
| 140 | - 'The last backlink should be a link to Bob Ross'); |
|
| 140 | + 'The last backlink should be a link to Bob Ross'); |
|
| 141 | 141 | } |
| 142 | 142 | } |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | //print_r(scandir(DOKU_TMP_DATA.'pages/')); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - function setUp() { |
|
| 53 | + function setUp() { |
|
| 54 | 54 | parent::setUp(); |
| 55 | 55 | |
| 56 | 56 | global $conf; |
@@ -87,6 +87,6 @@ discard block |
||
| 87 | 87 | $wikilink = pq('.idx .li .wikilink1', $doc); |
| 88 | 88 | $this->assertEquals(1, $wikilink->length, 'There should be 1 backlink'); |
| 89 | 89 | $this->assertEquals($wikilink->contents()[0],'An included link to Bob Ross', |
| 90 | - 'There should be a link to "An included link to Bob Ross"'); |
|
| 90 | + 'There should be a link to "An included link to Bob Ross"'); |
|
| 91 | 91 | } |
| 92 | 92 | } |
@@ -54,7 +54,9 @@ |
||
| 54 | 54 | parent::tearDownAfterClass(); |
| 55 | 55 | |
| 56 | 56 | $log = file_get_contents(TMP_DIR . '/cache/debug.log'); |
| 57 | - if(!$log) print_r($log); |
|
| 57 | + if(!$log) { |
|
| 58 | + print_r($log); |
|
| 59 | + } |
|
| 58 | 60 | } |
| 59 | 61 | |
| 60 | 62 | public function setUp() { |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | //print_r(scandir(DOKU_TMP_DATA.'pages/')); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - function setUp() { |
|
| 53 | + function setUp() { |
|
| 54 | 54 | parent::setUp(); |
| 55 | 55 | |
| 56 | 56 | global $conf; |
@@ -54,7 +54,9 @@ |
||
| 54 | 54 | parent::tearDownAfterClass(); |
| 55 | 55 | |
| 56 | 56 | $log = file_get_contents(TMP_DIR . '/cache/debug.log'); |
| 57 | - if(!$log) print_r($log); |
|
| 57 | + if(!$log) { |
|
| 58 | + print_r($log); |
|
| 59 | + } |
|
| 58 | 60 | } |
| 59 | 61 | |
| 60 | 62 | public function setUp() { |