From e932bef03141de219697486754c88791b00e553d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 9 Sep 2013 17:50:42 +0200 Subject: [PATCH 1/2] Fix: Bug with php 5.4 --- test/phpunit/PdfDocTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/test/phpunit/PdfDocTest.php b/test/phpunit/PdfDocTest.php index dd08b18ca07..c119f1a4ec6 100755 --- a/test/phpunit/PdfDocTest.php +++ b/test/phpunit/PdfDocTest.php @@ -132,6 +132,7 @@ class PdfDocTest extends PHPUnit_Framework_TestCase $localobject=new Facture($this->savdb); $localobject->initAsSpecimen(); $localobject->lines=array(); + $localobject->lines[0]=new FactureLigne($this->savdb); $localobject->lines[0]->fk_product=1; $localobject->lines[0]->label='Label 1'; $localobject->lines[0]->desc="This is a description with a é accent\n(Country of origin: France)"; From 574c4373b4fe5cd31c451ffc004e4b4eb1fb336a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 9 Sep 2013 19:53:35 +0200 Subject: [PATCH 2/2] Fix: bug with php 5.4 --- test/phpunit/BuildDocTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/phpunit/BuildDocTest.php b/test/phpunit/BuildDocTest.php index 4ac21f0fec4..073042f51df 100644 --- a/test/phpunit/BuildDocTest.php +++ b/test/phpunit/BuildDocTest.php @@ -221,7 +221,7 @@ class BuildDocTest extends PHPUnit_Framework_TestCase $newlangs5=new Translate("",$conf); $newlangs5->setDefaultLang('ru_RU'); $localobject->modelpdf='crabe'; - $result=facture_pdf_create($db, $localobject, $localobject->modelpdf, $newlangs); + $result=facture_pdf_create($db, $localobject, $localobject->modelpdf, $newlangs5); $this->assertLessThan($result, 0); print __METHOD__." result=".$result."\n";