@@ -162,11 +162,10 @@ |
||
| 162 | 162 | /** |
| 163 | 163 | * Add an index entry for this file having EXIF / IPTC data. |
| 164 | 164 | * |
| 165 | - * @param unknown_type $param |
|
| 166 | 165 | * @see http://www.php.net/manual/en/function.iptcparse.php |
| 167 | 166 | * @see http://php.net/manual/en/function.exif-read-data.php |
| 168 | 167 | * |
| 169 | - * @return true when image was succesfully added to the index. |
|
| 168 | + * @return boolean when image was succesfully added to the index. |
|
| 170 | 169 | */ |
| 171 | 170 | function indexImage($img) { |
| 172 | 171 | // test for supported files (jpeg only) |
@@ -23,40 +23,40 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | class general_plugin_spatialhelper_test extends DokuWikiTest { |
| 25 | 25 | |
| 26 | - protected $pluginsEnabled = array('spatialhelper'); |
|
| 26 | + protected $pluginsEnabled = array('spatialhelper'); |
|
| 27 | 27 | |
| 28 | - /** |
|
| 29 | - * Simple test to make sure the plugin.info.txt is in correct format. |
|
| 30 | - */ |
|
| 31 | - public function test_plugininfo() { |
|
| 32 | - $file = __DIR__ . '/../plugin.info.txt'; |
|
| 33 | - $this->assertFileExists($file); |
|
| 28 | + /** |
|
| 29 | + * Simple test to make sure the plugin.info.txt is in correct format. |
|
| 30 | + */ |
|
| 31 | + public function test_plugininfo() { |
|
| 32 | + $file = __DIR__ . '/../plugin.info.txt'; |
|
| 33 | + $this->assertFileExists($file); |
|
| 34 | 34 | |
| 35 | - $info = confToHash($file); |
|
| 35 | + $info = confToHash($file); |
|
| 36 | 36 | |
| 37 | - $this->assertArrayHasKey('base', $info); |
|
| 38 | - $this->assertArrayHasKey('author', $info); |
|
| 39 | - $this->assertArrayHasKey('email', $info); |
|
| 40 | - $this->assertArrayHasKey('date', $info); |
|
| 41 | - $this->assertArrayHasKey('name', $info); |
|
| 42 | - $this->assertArrayHasKey('desc', $info); |
|
| 43 | - $this->assertArrayHasKey('url', $info); |
|
| 37 | + $this->assertArrayHasKey('base', $info); |
|
| 38 | + $this->assertArrayHasKey('author', $info); |
|
| 39 | + $this->assertArrayHasKey('email', $info); |
|
| 40 | + $this->assertArrayHasKey('date', $info); |
|
| 41 | + $this->assertArrayHasKey('name', $info); |
|
| 42 | + $this->assertArrayHasKey('desc', $info); |
|
| 43 | + $this->assertArrayHasKey('url', $info); |
|
| 44 | 44 | |
| 45 | - $this->assertEquals('spatialhelper', $info['base']); |
|
| 46 | - $this->assertRegExp('/^https?:\/\//', $info['url']); |
|
| 47 | - $this->assertTrue(mail_isvalid($info['email'])); |
|
| 48 | - $this->assertRegExp('/^\d\d\d\d-\d\d-\d\d$/', $info['date']); |
|
| 49 | - $this->assertTrue(false !== strtotime($info['date'])); |
|
| 50 | - } |
|
| 45 | + $this->assertEquals('spatialhelper', $info['base']); |
|
| 46 | + $this->assertRegExp('/^https?:\/\//', $info['url']); |
|
| 47 | + $this->assertTrue(mail_isvalid($info['email'])); |
|
| 48 | + $this->assertRegExp('/^\d\d\d\d-\d\d-\d\d$/', $info['date']); |
|
| 49 | + $this->assertTrue(false !== strtotime($info['date'])); |
|
| 50 | + } |
|
| 51 | 51 | |
| 52 | - /** |
|
| 53 | - * test if plugin is loaded. |
|
| 54 | - */ |
|
| 55 | - public function test_plugin_spatialhelper_isloaded() { |
|
| 56 | - global $plugin_controller; |
|
| 57 | - $this->assertTrue( |
|
| 58 | - in_array('spatialhelper', $plugin_controller->getList()), |
|
| 59 | - "spatialhelper plugin is loaded" |
|
| 60 | - ); |
|
| 61 | - } |
|
| 52 | + /** |
|
| 53 | + * test if plugin is loaded. |
|
| 54 | + */ |
|
| 55 | + public function test_plugin_spatialhelper_isloaded() { |
|
| 56 | + global $plugin_controller; |
|
| 57 | + $this->assertTrue( |
|
| 58 | + in_array('spatialhelper', $plugin_controller->getList()), |
|
| 59 | + "spatialhelper plugin is loaded" |
|
| 60 | + ); |
|
| 61 | + } |
|
| 62 | 62 | } |