Completed
Pull Request — master (#9)
by Mark
02:12
created
_test/general.test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
_test/syntax.test.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,18 +28,18 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * copy data and add pages to the index.
30 30
      */
31
-    public static function setUpBeforeClass(){
31
+    public static function setUpBeforeClass() {
32 32
         parent::setUpBeforeClass();
33 33
         global $conf;
34 34
 
35
-        TestUtils::rcopy(TMP_DIR, dirname(__FILE__) . '/data/');
35
+        TestUtils::rcopy(TMP_DIR, dirname(__FILE__).'/data/');
36 36
 
37 37
         $data = array();
38 38
         search($data, $conf['datadir'], 'search_allpages', array('skipacl' => true));
39 39
 
40 40
         $verbose = false;
41 41
         $force = true;
42
-        foreach($data as $val) {
42
+        foreach ($data as $val) {
43 43
             idx_addPage($val['id'], $verbose, $force);
44 44
         }
45 45
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         $this->assertEquals(4, $wikilink->length, 'There should be 4 backlinks');
80 80
         //print "wikilink[0]:\n";
81 81
         //print_r(pq($wikilink->contents()[0], $doc));
82
-        $this->assertEquals($wikilink->contents()[3],'A link to Bob Ross',
82
+        $this->assertEquals($wikilink->contents()[3], 'A link to Bob Ross',
83 83
                            'The last backlink should be a link to Bob Ross');
84 84
     }
85 85
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         $this->assertEquals(4, $wikilink->length, 'There should be 4 backlinks');
116 116
         //print "wikilink[0]:\n";
117 117
         //print_r(pq($wikilink->contents()[0], $doc));
118
-        $this->assertEquals($wikilink->contents()[3],'A link to Bob Ross',
118
+        $this->assertEquals($wikilink->contents()[3], 'A link to Bob Ross',
119 119
                            'The last backlink should be a link to Bob Ross');
120 120
     }
121 121
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
         $wikilink = pq('.idx .li .wikilink1', $doc);
138 138
         $this->assertEquals(1, $wikilink->length, 'There should be 1 backlink');
139
-        $this->assertEquals($wikilink->contents()[0],'An included link to Bob Ross',
139
+        $this->assertEquals($wikilink->contents()[0], 'An included link to Bob Ross',
140 140
                            'There should be a link to "An included link to Bob Ross"');
141 141
     }
142 142
 
Please login to merge, or discard this patch.