diff options
author | Craig Duncan <git@duncanc.co.uk> | 2016-10-04 19:15:17 +0100 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2016-11-17 09:33:04 +0000 |
commit | c1001d22d2c1c64dc3df6c1701d03cc7fc26d231 (patch) | |
tree | 0877d053ee00a54849110bd7d785f013745f3966 /ext/standard/tests/array/sizeof_basic1.phpt | |
parent | b000f5c3413c49be19568d225f9ff6312f181f3d (diff) | |
download | php-git-c1001d22d2c1c64dc3df6c1701d03cc7fc26d231.tar.gz |
Add expectations for invalid count() warnings
Diffstat (limited to 'ext/standard/tests/array/sizeof_basic1.phpt')
-rw-r--r-- | ext/standard/tests/array/sizeof_basic1.phpt | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/ext/standard/tests/array/sizeof_basic1.phpt b/ext/standard/tests/array/sizeof_basic1.phpt index dea4a68ea8..ac86cbf8d7 100644 --- a/ext/standard/tests/array/sizeof_basic1.phpt +++ b/ext/standard/tests/array/sizeof_basic1.phpt @@ -45,16 +45,28 @@ echo "Done"; --EXPECTF-- *** Testing sizeof() : basic functionality *** -- Testing sizeof() for integer type in default, COUNT_NORMAL and COUNT_RECURSIVE modes -- -default mode: int(1) +default mode: +Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d +int(1) -COUNT_NORMAL mode: int(1) +COUNT_NORMAL mode: +Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d +int(1) -COUNT_RECURSIVE mode: int(1) +COUNT_RECURSIVE mode: +Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d +int(1) -- Testing sizeof() for float type in default, COUNT_NORMAL and COUNT_RECURSIVE modes -- -default mode: int(1) +default mode: +Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d +int(1) -COUNT_NORMAL mode: int(1) +COUNT_NORMAL mode: +Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d +int(1) -COUNT_RECURSIVE mode: int(1) +COUNT_RECURSIVE mode: +Warning: sizeof(): Parameter must be an array or an object that implements Countable in %s on line %d +int(1) Done |