@@ -27,7 +27,7 @@ |
||
| 27 | 27 | * Simple test to make sure the plugin.info.txt is in correct format |
| 28 | 28 | */ |
| 29 | 29 | public function test_plugininfo() { |
| 30 | - $file = __DIR__ . '/../plugin.info.txt'; |
|
| 30 | + $file = __DIR__.'/../plugin.info.txt'; |
|
| 31 | 31 | $this->assertFileExists($file); |
| 32 | 32 | |
| 33 | 33 | $info = confToHash($file); |
@@ -25,13 +25,13 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | protected $pluginsEnabled = array('backlinks'); |
| 27 | 27 | |
| 28 | - public static function setUpBeforeClass(){ |
|
| 28 | + public static function setUpBeforeClass() { |
|
| 29 | 29 | parent::setUpBeforeClass(); |
| 30 | 30 | global $conf; |
| 31 | 31 | //print "Pages dir (before copy):\n"; |
| 32 | 32 | //print_r(scandir(DOKU_TMP_DATA.'pages/')); |
| 33 | 33 | |
| 34 | - TestUtils::rcopy(TMP_DIR, dirname(__FILE__) . '/data/'); |
|
| 34 | + TestUtils::rcopy(TMP_DIR, dirname(__FILE__).'/data/'); |
|
| 35 | 35 | |
| 36 | 36 | //print "Pages dir (after copy):\n"; |
| 37 | 37 | //print_r(scandir(DOKU_TMP_DATA.'pages/')); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | $verbose = true; |
| 48 | 48 | $force = false; |
| 49 | - foreach($data as $val) { |
|
| 49 | + foreach ($data as $val) { |
|
| 50 | 50 | idx_addPage($val['id'], $verbose, $force); |
| 51 | 51 | } |
| 52 | 52 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | |
| 66 | - function tearDown(){ |
|
| 66 | + function tearDown() { |
|
| 67 | 67 | parent::tearDown(); |
| 68 | 68 | } |
| 69 | 69 | |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | $this->assertEquals(1, $wikilink->length, 'There should be one link'); |
| 126 | 126 | //print "wikilink[0]:\n"; |
| 127 | 127 | //print_r(pq($wikilink->contents()[0], $doc)); |
| 128 | - $this->assertEquals($wikilink->contents()[0],'A link to Bob Ross', |
|
| 128 | + $this->assertEquals($wikilink->contents()[0], 'A link to Bob Ross', |
|
| 129 | 129 | 'There should be a link to Bob Ross'); |
| 130 | 130 | } |
| 131 | 131 | |