Bug11831Test: fix PHP 5.3 compatibility

This commit is contained in:
Thomas Gelf 2017-01-04 18:07:57 +01:00
parent 361bfc5081
commit 8f25dc3539
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}