mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00

Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
31 lines
751 B
PHP
31 lines
751 B
PHP
--TEST--
|
|
ReflectionExtension::__construct()
|
|
--CREDITS--
|
|
Gerrit "Remi" te Sligte <remi@wolerized.com>
|
|
Leon Luijkx <leon@phpgg.nl>
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
$obj = new ReflectionExtension();
|
|
} catch (TypeError $re) {
|
|
echo "Ok - ".$re->getMessage().PHP_EOL;
|
|
}
|
|
|
|
try {
|
|
$obj = new ReflectionExtension('foo', 'bar');
|
|
} catch (TypeError $re) {
|
|
echo "Ok - ".$re->getMessage().PHP_EOL;
|
|
}
|
|
|
|
try {
|
|
$obj = new ReflectionExtension([]);
|
|
} catch (TypeError $re) {
|
|
echo "Ok - ".$re->getMessage().PHP_EOL;
|
|
}
|
|
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Ok - ReflectionExtension::__construct() expects exactly %d parameter, %d given
|
|
Ok - ReflectionExtension::__construct() expects exactly %d parameter, %d given
|
|
Ok - ReflectionExtension::__construct() expects parameter 1 to be string, array given
|