Fix: phpunit

This commit is contained in:
Laurent Destailleur 2013-09-09 02:58:09 +02:00
parent 8114702a8e
commit ebfa63adf5
2 changed files with 2 additions and 3 deletions

View File

@ -38,7 +38,6 @@ Note that xdebug must be installed for this feature to work.
* Generate a report of Unit tests code coverage among all Dolibarr classes:
Increase your PHP memory (memory_limit in php.ini) to 512MB.
Remove all files into dolibarr root found with "find . | grep CVS\/Base\/ | grep \.php"
> cd test
> phpunit -d memory_limit=-1 -d max_input_time=0 -d max_execution_time=0 --configuration ./phpunit/phpunittest.xml --coverage-html ./report --coverage-clover ./report/logs/phpunit.coverage.xml --log-junit ./report/logs/phpunit.xml phpunit/AllTests.php

View File

@ -143,7 +143,7 @@ class FactureTestRounding extends PHPUnit_Framework_TestCase
// Add two lines
for ($i=0; $i<2; $i++)
{
$localobject->addline($result, 'Description '.$i, 1.24, 1, 10);
$localobject->addline('Description '.$i, 1.24, 1, 10);
}
$newlocalobject=new Facture($this->savdb);
@ -186,7 +186,7 @@ class FactureTestRounding extends PHPUnit_Framework_TestCase
// Add two lines
for ($i=0; $i<2; $i++)
{
$localobject->addline($result, 'Description '.$i, 1.24, 1, 10);
$localobject->addline('Description '.$i, 1.24, 1, 10);
}
$newlocalobject=new Facture($this->savdb);