From 72e17fe60e88549dc93fe27c0d129a844091c612 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 29 Sep 2023 16:53:54 +0200 Subject: [PATCH] Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop --- test/phpunit/FunctionsLibTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/phpunit/FunctionsLibTest.php b/test/phpunit/FunctionsLibTest.php index c8843d36209..9ffc0b1680d 100644 --- a/test/phpunit/FunctionsLibTest.php +++ b/test/phpunit/FunctionsLibTest.php @@ -1075,7 +1075,7 @@ class FunctionsLibTest extends PHPUnit\Framework\TestCase /** - * testDolFormatAddress + * testDolPrintPhone * * @return void */ @@ -1092,19 +1092,19 @@ class FunctionsLibTest extends PHPUnit\Framework\TestCase $object->country_code='FR'; $phone=dol_print_phone('1234567890', $object->country_code); - $this->assertEquals('12 34 56 78 90', $phone, 'Phone for FR 1'); + $this->assertEquals($phone, '12 34 56 78 90', 'Phone for FR 1'); $object->country_code='FR'; $phone=dol_print_phone('1234567890', $object->country_code, 0, 0, 0, ''); - $this->assertEquals('1234567890', $phone, 'Phone for FR 2'); + $this->assertEquals($phone, '1234567890', 'Phone for FR 2'); $object->country_code='FR'; $phone=dol_print_phone('1234567890', $object->country_code, 0, 0, 0, ' '); - $this->assertEquals('12 34 56 78 90', $phone, 'Phone for FR 3'); + $this->assertEquals($phone, '12 34 56 78 90', 'Phone for FR 3'); $object->country_code='CA'; $phone=dol_print_phone('1234567890', $object->country_code, 0, 0, 0, ' '); - $this->assertEquals('(123) 456-7890', $phone, 'Phone for CA 1'); + $this->assertEquals($phone, '(123) 456-7890', 'Phone for CA 1'); }