mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-03 08:04:17 +01:00
✅ iTopFormatTest : better info on conversion error
This commit is contained in:
@@ -45,7 +45,8 @@ class iTopDesignFormatTest extends ItopTestCase
|
||||
$oInputDesignFormat = static::GetItopFormatFromString($sInputXml);
|
||||
$bResult = $oInputDesignFormat->Convert($sTargetVersion);
|
||||
$aErrors = $oInputDesignFormat->GetErrors();
|
||||
$this->assertCount($iExpectedErrors, $aErrors);
|
||||
$this->assertCount($iExpectedErrors, $aErrors,
|
||||
'errors in input format: '.var_export($aErrors, true));
|
||||
if ($iExpectedErrors > 0) {
|
||||
$this->assertFalse($bResult);
|
||||
$this->assertEquals($sFirstErrorMessage, $aErrors[0]);
|
||||
|
||||
Reference in New Issue
Block a user