diff --git a/dev/tools/test/testtcpdf.php b/dev/tools/test/testtcpdf.php index ad67bce8af9..e14dae9c2a3 100755 --- a/dev/tools/test/testtcpdf.php +++ b/dev/tools/test/testtcpdf.php @@ -101,7 +101,7 @@ $pdf->SetHeaderMargin(PDF_MARGIN_HEADER); $pdf->SetFooterMargin(PDF_MARGIN_FOOTER); //set auto page breaks -$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); +$pdf->SetAutoPageBreak(true, PDF_MARGIN_BOTTOM); //set image scale factor $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); diff --git a/dev/tools/test/testutf.php b/dev/tools/test/testutf.php index cb83f431b93..c626a92a57d 100644 --- a/dev/tools/test/testutf.php +++ b/dev/tools/test/testutf.php @@ -76,7 +76,7 @@ $pdf->SetHeaderMargin(PDF_MARGIN_HEADER); $pdf->SetFooterMargin(PDF_MARGIN_FOOTER); //set auto page breaks -$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); +$pdf->SetAutoPageBreak(true, PDF_MARGIN_BOTTOM); //set image scale factor //$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); diff --git a/test/phpunit/WebservicesInvoicesTest.php b/test/phpunit/WebservicesInvoicesTest.php index 75cc767b8ee..d2d02bde974 100644 --- a/test/phpunit/WebservicesInvoicesTest.php +++ b/test/phpunit/WebservicesInvoicesTest.php @@ -182,12 +182,12 @@ class WebservicesInvoicesTest extends PHPUnit_Framework_TestCase $WS_METHOD = 'createInvoice'; $body = array ( - "id" => NULL, - "ref" => NULL, + "id" => null, + "ref" => null, "ref_ext" => "ref-phpunit-2", "thirdparty_id" => self::$socid, - "fk_user_author" => NULL, - "fk_user_valid" => NULL, + "fk_user_author" => null, + "fk_user_valid" => null, "date" => "2015-04-19 20:16:53", "date_due" => "", "date_creation" => "", @@ -201,11 +201,11 @@ class WebservicesInvoicesTest extends PHPUnit_Framework_TestCase "note_private" => "Synchronised from Prestashop", "note_public" => "", "status" => "1", - "close_code" => NULL , - "close_note" => NULL, - "project_id" => NULL, + "close_code" => null , + "close_note" => null, + "project_id" => null, "lines" => array( - array("id" => NULL, + array("id" => null, "type" => 0, "desc" => "Horloge Vinyle Serge", "vat_rate" => 20, @@ -339,12 +339,12 @@ class WebservicesInvoicesTest extends PHPUnit_Framework_TestCase // update status to 2 $body = array ( - "id" => NULL, - "ref" => NULL, + "id" => null, + "ref" => null, "ref_ext" => "ref-phpunit-2", "thirdparty_id" => self::$socid, - "fk_user_author" => NULL, - "fk_user_valid" => NULL, + "fk_user_author" => null, + "fk_user_valid" => null, "date" => "2015-04-19 20:16:53", "date_due" => "", "date_creation" => "", @@ -358,12 +358,12 @@ class WebservicesInvoicesTest extends PHPUnit_Framework_TestCase "note_private" => "Synchronised from Prestashop", "note_public" => "", "status" => "2", - "close_code" => NULL , - "close_note" => NULL, - "project_id" => NULL, + "close_code" => null , + "close_note" => null, + "project_id" => null, "lines" => array( array( - "id" => NULL, + "id" => null, "type" => 0, "desc" => "Horloge Vinyle Serge", "vat_rate" => 20, diff --git a/test/phpunit/WebservicesThirdpartyTest.php b/test/phpunit/WebservicesThirdpartyTest.php index e0e22125afe..f974622e013 100644 --- a/test/phpunit/WebservicesThirdpartyTest.php +++ b/test/phpunit/WebservicesThirdpartyTest.php @@ -161,11 +161,11 @@ class WebservicesThirdpartyTest extends PHPUnit_Framework_TestCase 'entity'=>''); $body = array ( - "id" => NULL, + "id" => null, "ref" => "name", "ref_ext" => "12", - "fk_user_author" => NULL, - "status" => NULL, + "fk_user_author" => null, + "status" => null, "client" => 1, "supplier" => 0, "customer_code" => "CU0901-5678",