iTopFormatTest : better info on conversion error

This commit is contained in:
Pierre Goiffon
2022-11-09 16:38:44 +01:00
parent 8f6065d4f4
commit f60331e0f9

View File

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