2008-06-12 21:25:28 +00:00
|
|
|
--TEST--
|
|
|
|
ReflectionExtension::__construct()
|
|
|
|
--CREDITS--
|
|
|
|
Gerrit "Remi" te Sligte <remi@wolerized.com>
|
|
|
|
Leon Luijkx <leon@phpgg.nl>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
2015-03-01 13:20:07 +00:00
|
|
|
try {
|
|
|
|
$obj = new ReflectionExtension();
|
2015-04-02 16:52:32 +00:00
|
|
|
} catch (TypeException $re) {
|
2015-03-01 13:20:07 +00:00
|
|
|
echo "Ok - ".$re->getMessage().PHP_EOL;
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
|
|
$obj = new ReflectionExtension('foo', 'bar');
|
2015-04-02 16:52:32 +00:00
|
|
|
} catch (TypeException $re) {
|
2015-03-01 13:20:07 +00:00
|
|
|
echo "Ok - ".$re->getMessage().PHP_EOL;
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
|
|
$obj = new ReflectionExtension([]);
|
2015-04-02 16:52:32 +00:00
|
|
|
} catch (TypeException $re) {
|
2015-03-01 13:20:07 +00:00
|
|
|
echo "Ok - ".$re->getMessage().PHP_EOL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2008-06-12 21:25:28 +00:00
|
|
|
?>
|
|
|
|
==DONE==
|
|
|
|
--EXPECTF--
|
2015-03-01 13:20:07 +00:00
|
|
|
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
|
2008-06-12 21:25:28 +00:00
|
|
|
==DONE==
|