Completed
Pull Request — master (#9)
by Mark
02:26
created
_test/syntax_include.test.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
_test/syntax_exclude.test.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
_test/syntax.test.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         //print_r(scandir(DOKU_TMP_DATA.'pages/'));
41 41
     }
42 42
 
43
-   function setUp() {
43
+    function setUp() {
44 44
         parent::setUp();
45 45
 
46 46
         global $conf;
@@ -67,17 +67,17 @@  discard block
 block discarded – undo
67 67
         global $conf;
68 68
         $log = file_get_contents($conf['cachedir'].'/debug.log');
69 69
         if(!$log) {
70
-			print_r($log);
71
-			unlink($conf['cachedir'].'/debug.log');
72
-		}
70
+            print_r($log);
71
+            unlink($conf['cachedir'].'/debug.log');
72
+        }
73 73
     }
74 74
 
75 75
     public function testIndex() {
76 76
         $indexer = idx_get_indexer();
77 77
         $query = array('Bob Ross');
78 78
         $this->assertEquals(
79
-                 array('Bob Ross' => array('link' => 1)),
80
-                 $indexer->lookup($query)
79
+                    array('Bob Ross' => array('link' => 1)),
80
+                    $indexer->lookup($query)
81 81
         );
82 82
 
83 83
         print_r($indexer->lookup($query));
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             strpos($response->getContent(), 'A link to Bob Ross') !== false,
101 101
             'A link to Bob Ross was not in the output'
102 102
         );
103
-     }
103
+        }
104 104
 
105 105
     public function testStoryPage() {
106 106
         $request = new TestRequest();
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         //print "wikilink[0]:\n";
122 122
         //print_r(pq($wikilink->contents()[0], $doc));
123 123
         $this->assertEquals($wikilink->contents()[3],'A link to Bob Ross',
124
-                           'The last backlink should be a link to Bob Ross');
124
+                            'The last backlink should be a link to Bob Ross');
125 125
     }
126 126
 
127 127
     public function testBacklinks() {
@@ -143,6 +143,6 @@  discard block
 block discarded – undo
143 143
         //print "wikilink[0]:\n";
144 144
         //print_r(pq($wikilink->contents()[0], $doc));
145 145
         $this->assertEquals($wikilink->contents()[3],'A link to Bob Ross',
146
-                           'The last backlink should be a link to Bob Ross');
146
+                            'The last backlink should be a link to Bob Ross');
147 147
     }
148 148
 }
Please login to merge, or discard this patch.