Completed
Push — master ( 78ba05...4ffd57 )
by Michael
01:59
created
_test/general.test.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      * Simple test to make sure the plugin.info.txt is in correct format
12 12
      */
13 13
     public function test_plugininfo() {
14
-        $file = __DIR__.'/../plugin.info.txt';
14
+        $file = __DIR__ . '/../plugin.info.txt';
15 15
         $this->assertFileExists($file);
16 16
 
17 17
         $info = confToHash($file);
@@ -36,23 +36,23 @@  discard block
 block discarded – undo
36 36
      * conf/metadata.php.
37 37
      */
38 38
     public function test_plugin_conf() {
39
-        $conf_file = __DIR__.'/../conf/default.php';
40
-        if (file_exists($conf_file)){
39
+        $conf_file = __DIR__ . '/../conf/default.php';
40
+        if (file_exists($conf_file)) {
41 41
             include($conf_file);
42 42
         }
43
-        $meta_file = __DIR__.'/../conf/metadata.php';
43
+        $meta_file = __DIR__ . '/../conf/metadata.php';
44 44
         if (file_exists($meta_file)) {
45 45
             include($meta_file);
46 46
         }
47 47
 
48
-        $this->assertEquals(gettype($conf), gettype($meta),'Both ' . DOKU_PLUGIN . 'issuelinks/conf/default.php and ' . DOKU_PLUGIN . 'issuelinks/conf/metadata.php have to exist and contain the same keys.');
48
+        $this->assertEquals(gettype($conf), gettype($meta), 'Both ' . DOKU_PLUGIN . 'issuelinks/conf/default.php and ' . DOKU_PLUGIN . 'issuelinks/conf/metadata.php have to exist and contain the same keys.');
49 49
 
50 50
         if (gettype($conf) != 'NULL' && gettype($meta) != 'NULL') {
51
-            foreach($conf as $key => $value) {
51
+            foreach ($conf as $key => $value) {
52 52
                 $this->assertArrayHasKey($key, $meta, 'Key $meta[\'' . $key . '\'] missing in ' . DOKU_PLUGIN . 'issuelinks/conf/metadata.php');
53 53
             }
54 54
 
55
-            foreach($meta as $key => $value) {
55
+            foreach ($meta as $key => $value) {
56 56
                 $this->assertArrayHasKey($key, $conf, 'Key $conf[\'' . $key . '\'] missing in ' . DOKU_PLUGIN . 'issuelinks/conf/default.php');
57 57
             }
58 58
         }
Please login to merge, or discard this patch.