forked from Wavyzz/dolibarr
Fix phpunit
This commit is contained in:
@@ -163,10 +163,10 @@ class CodingSqlTest extends PHPUnit_Framework_TestCase
|
||||
$result=strpos($filecontent,'"');
|
||||
if ($result)
|
||||
{
|
||||
$result=! strpos($filecontent,'["');
|
||||
$result=(! strpos($filecontent,'["') && ! strpos($filecontent,'{"'));
|
||||
}
|
||||
print __METHOD__." Result for checking we don't have double quote = ".$result."\n";
|
||||
$this->assertTrue($result===false, 'Found double quote that is not [" (used for json content) into '.$file.'. Bad.');
|
||||
$this->assertTrue($result===false, 'Found double quote that is not [" neither {" (used for json content) into '.$file.'. Bad.');
|
||||
|
||||
$result=strpos($filecontent,'int(');
|
||||
print __METHOD__." Result for checking we don't have 'int(' instead of 'integer' = ".$result."\n";
|
||||
|
||||
Reference in New Issue
Block a user