mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 17:18:51 +02:00
enhance phpunit test messages in case of failure
This commit is contained in:
@@ -53,7 +53,7 @@ class SetupCssIntegrityChecklistTest extends ItopTestCase
|
||||
$sSetupCssContent = file_get_contents($sSetupCssPath);
|
||||
$this->assertContains('/* integrityCheck: begin (do not remove/edit) */', $sSetupCssContent);
|
||||
$this->assertContains('/* integrityCheck: end (do not remove/edit) */', $sSetupCssContent);
|
||||
$this->assertGreaterThan(4000, strlen($sSetupCssContent), 'Test if the resulting file is long enough, the value is totally arbitrary (at the time of the writing the file is 5660o long');
|
||||
$this->assertGreaterThan(4000, strlen($sSetupCssContent), "Test if the resulting file $sSetupCssPath is long enough, the value is totally arbitrary (at the time of the writing the file is 5660o long");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ class iTopModulesPhpVersionChecklistTest extends ItopTestCase
|
||||
$matches
|
||||
);
|
||||
|
||||
$this->assertSame($sExpectedVersion, $matches[1]);
|
||||
$this->assertSame($sExpectedVersion, $matches[1], "$sPhpFile file refer does not refer to current itop version ($matches[1] instead of expected $sExpectedVersion)");
|
||||
}
|
||||
|
||||
public function DatamodelItopXmlVersionProvider()
|
||||
|
||||
@@ -57,7 +57,7 @@ class iTopModulesXmlVersionChecklistTest extends ItopTestCase
|
||||
$matches
|
||||
);
|
||||
|
||||
$this->assertSame($sExpectedXmlVersion, $matches[1]);
|
||||
$this->assertSame($sExpectedXmlVersion, $matches[1], "$sXmlFile file refer does not refer to current itop version ($matches[1] instead of expected $sExpectedXmlVersion)");
|
||||
}
|
||||
|
||||
public function DatamodelItopXmlVersionProvider()
|
||||
|
||||
Reference in New Issue
Block a user