[icinga-checkins] icinga.org: icingaweb2/feature/travis: Bug11831Test: fix PHP 5.3 compatibility

git at icinga.org git at icinga.org
Wed Jan 4 18:14:54 CET 2017


Module: icingaweb2
Branch: feature/travis
Commit: 8f25dc3539176cc4932dc536669bfa284c74c563
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=8f25dc3539176cc4932dc536669bfa284c74c563

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed Jan  4 18:07:57 2017 +0100

Bug11831Test: fix PHP 5.3 compatibility

---

 test/php/regression/Bug11831Test.php |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/php/regression/Bug11831Test.php b/test/php/regression/Bug11831Test.php
index 9264c46..7f15e7c 100644
--- a/test/php/regression/Bug11831Test.php
+++ b/test/php/regression/Bug11831Test.php
@@ -30,7 +30,8 @@ EOT;
         $reflection = new ReflectionClass($module);
         $prop = $reflection->getProperty('metadataFile');
         $prop->setAccessible(true);
-        $prop->setValue($module, stream_get_meta_data($moduleInfoFile)['uri']);
+        $meta = stream_get_meta_data($moduleInfoFile);
+        $prop->setValue($module, $meta['uri']);
         $this->assertEquals($module->getVersion(), '1.0.0');
         fclose($moduleInfoFile);
     }



More information about the icinga-checkins mailing list