Fix: phpunit
This commit is contained in:
parent
8114702a8e
commit
ebfa63adf5
@ -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
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user