com php-src: fix tests: ext/gd/tests/imagetruecolortopalette_ error3.phpt ext/gd/tests/imagetruecolortopalette_error 4.phpt
| From: | Anatol Belski | Date: | Wed, 17 Aug 2016 11:46:15 +0000 |
| Subject: | com php-src: fix tests: ext/gd/tests/imagetruecolortopalette_ error3.phpt ext/gd/tests/imagetruecolortopalette_error 4.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93896@lists.php.net to get a copy of this message | ||
Commit: b0d8f96048ffa1219bd11bd666579702a2c68384
Author: Anatol Belski <ab@php.net> Tue, 16 Aug 2016 14:41:24 +0200
Parents: 3493ed5b528be73c73a85c75effdfd3a469ac55d
Branches: PHP-7.0.10
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b0d8f96048ffa1219bd11bd666579702a2c68384
Log:
fix tests
(cherry picked from commit d926a48fd27942d15190a6defdcb05b1e07c9701)
Changed paths:
M ext/gd/tests/imagetruecolortopalette_error3.phpt
M ext/gd/tests/imagetruecolortopalette_error4.phpt
Diff:
diff --git a/ext/gd/tests/imagetruecolortopalette_error3.phpt
b/ext/gd/tests/imagetruecolortopalette_error3.phpt
index de3a62d..46e3f48 100644
--- a/ext/gd/tests/imagetruecolortopalette_error3.phpt
+++ b/ext/gd/tests/imagetruecolortopalette_error3.phpt
@@ -25,4 +25,4 @@ Warning: imagetruecolortopalette() expects parameter 3 to be integer, resource g
Warning: imagetruecolortopalette() expects parameter 3 to be integer, array given in %s on line %d
-Warning: imagetruecolortopalette(): Number of colors has to be greater than zero in %s on line %d
\ No newline at end of file
+Warning: imagetruecolortopalette(): Number of colors has to be greater than zero and no more than
%d in %s on line %d
diff --git a/ext/gd/tests/imagetruecolortopalette_error4.phpt
b/ext/gd/tests/imagetruecolortopalette_error4.phpt
index b9661e3..f0e18b8 100644
--- a/ext/gd/tests/imagetruecolortopalette_error4.phpt
+++ b/ext/gd/tests/imagetruecolortopalette_error4.phpt
@@ -16,6 +16,6 @@ imagetruecolortopalette($image, true, -1);
?>
--EXPECTF--
-Warning: imagetruecolortopalette(): Number of colors has to be greater than zero in %s on line %d
+Warning: imagetruecolortopalette(): Number of colors has to be greater than zero and no more than
%d in %s line %d
-Warning: imagetruecolortopalette(): Number of colors has to be greater than zero in %s on line %d
\ No newline at end of file
+Warning: imagetruecolortopalette(): Number of colors has to be greater than zero and no more than
%d in %s line %d