mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Bug11831Test: fix PHP 5.3 compatibility
This commit is contained in:
parent
361bfc5081
commit
8f25dc3539
@ -30,7 +30,8 @@ EOT;
|
|||||||
$reflection = new ReflectionClass($module);
|
$reflection = new ReflectionClass($module);
|
||||||
$prop = $reflection->getProperty('metadataFile');
|
$prop = $reflection->getProperty('metadataFile');
|
||||||
$prop->setAccessible(true);
|
$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');
|
$this->assertEquals($module->getVersion(), '1.0.0');
|
||||||
fclose($moduleInfoFile);
|
fclose($moduleInfoFile);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user