mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
9975986b7e
Closes GH-5999
32 lines
773 B
PHP
32 lines
773 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;
|
|
}
|
|
|
|
|
|
?>
|
|
--EXPECT--
|
|
Ok - ReflectionExtension::__construct() expects exactly 1 argument, 0 given
|
|
Ok - ReflectionExtension::__construct() expects exactly 1 argument, 2 given
|
|
Ok - ReflectionExtension::__construct(): Argument #1 ($name) must be of type string, array given
|