mirror of
https://github.com/php/php-src.git
synced 2026-04-03 14:12:38 +02:00
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
29 lines
642 B
PHP
29 lines
642 B
PHP
--TEST--
|
|
SPL: FixedArray: Invalid arguments
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
$a = new SplFixedArray(new stdClass);
|
|
} catch (TypeError $iae) {
|
|
echo "Ok - ".$iae->getMessage().PHP_EOL;
|
|
}
|
|
|
|
try {
|
|
$a = new SplFixedArray('FOO');
|
|
} catch (TypeError $iae) {
|
|
echo "Ok - ".$iae->getMessage().PHP_EOL;
|
|
}
|
|
|
|
try {
|
|
$a = new SplFixedArray('');
|
|
} catch (TypeError $iae) {
|
|
echo "Ok - ".$iae->getMessage().PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Ok - SplFixedArray::__construct() expects parameter 1 to be int, object given
|
|
Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given
|
|
Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given
|