From ebfa63adf53d463830c8bf827d4f47778861cfcd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 9 Sep 2013 02:58:09 +0200 Subject: [PATCH] Fix: phpunit --- test/README | 1 - test/phpunit/FactureTestRounding.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/README b/test/README index dcfa2b0e5a5..ebfa1786eba 100644 --- a/test/README +++ b/test/README @@ -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 diff --git a/test/phpunit/FactureTestRounding.php b/test/phpunit/FactureTestRounding.php index c18ecd1e331..c8f99b58502 100644 --- a/test/phpunit/FactureTestRounding.php +++ b/test/phpunit/FactureTestRounding.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);