enhance phpunit test messages in case of failure

This commit is contained in:
odain
2020-08-04 14:11:52 +02:00
parent 4f04031183
commit 56e2f63385
3 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -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()

View File

@@ -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()