mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-27 12:38:44 +02:00
💚 renaming postbuild test folder + fix tests
This commit is contained in:
@@ -57,9 +57,22 @@ class iTopModulesPhpVersionIntegrationTest extends ItopTestCase
|
||||
$matches
|
||||
);
|
||||
|
||||
$this->assertSame($sExpectedVersion, $matches[1], "$sPhpFile file refer does not refer to current itop version ($matches[1] instead of expected $sExpectedVersion)");
|
||||
$this->assertSame($this->KeepMajorVersion($sExpectedVersion), $this->KeepMajorVersion($matches[1]),
|
||||
"$sPhpFile file refer does not refer to current itop version ($matches[1] instead of expected $sExpectedVersion)");
|
||||
}
|
||||
|
||||
private function KeepMajorVersion($sVersion)
|
||||
{
|
||||
preg_match(
|
||||
"#(.*)\.[^\.]*$#",
|
||||
$sVersion,
|
||||
$matches
|
||||
);
|
||||
return $matches[1];
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function iTopModulesPhpVersionProvider()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
Reference in New Issue
Block a user