This commit is contained in:
Laurent Destailleur 2022-07-29 18:16:29 +02:00
parent fe2a0e0340
commit edb61faf25

View File

@ -230,6 +230,10 @@ class LangTest extends PHPUnit\Framework\TestCase
$result=preg_match('/%n/m', $filecontent); // A sequence of char we don't want
//print __METHOD__." Result for checking we don't have bad percent char = ".$result."\n";
$this->assertTrue($result == 0, 'Found a sequence %n into the translation file '.$code.'/'.$file.'. We probably want %s');
$result=preg_match('/<<<<</m', $filecontent); // A sequence of char we don't want
//print __METHOD__." Result for checking we don't have bad percent char = ".$result."\n";
$this->assertTrue($result == 0, 'Found a sequence <<<<< into the translation file '.$code.'/'.$file.'. Probably a bad merge of code were done.');
}
}