diff options
Diffstat (limited to 'ext/reflection/tests/ReflectionFunction_construct.001.phpt')
-rw-r--r-- | ext/reflection/tests/ReflectionFunction_construct.001.phpt | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/ext/reflection/tests/ReflectionFunction_construct.001.phpt b/ext/reflection/tests/ReflectionFunction_construct.001.phpt index 90259ac997..52db7c654d 100644 --- a/ext/reflection/tests/ReflectionFunction_construct.001.phpt +++ b/ext/reflection/tests/ReflectionFunction_construct.001.phpt @@ -9,31 +9,27 @@ Steve Seear <stevseea@php.net> try { $a = new ReflectionFunction(array(1, 2, 3)); echo "exception not thrown.".PHP_EOL; -} -catch(ReflectionException $re) { +} catch (TypeException $re) { echo "Ok - ".$re->getMessage().PHP_EOL; } try { $a = new ReflectionFunction('nonExistentFunction'); -} catch (Exception $e) { +} catch (ReflectionException $e) { echo $e->getMessage().PHP_EOL; } try { $a = new ReflectionFunction(); -} -catch(ReflectionException $re) { +} catch (TypeException $re) { echo "Ok - ".$re->getMessage().PHP_EOL; } try { $a = new ReflectionFunction(1, 2); -} -catch(ReflectionException $re) { +} catch (TypeException $re) { echo "Ok - ".$re->getMessage().PHP_EOL; } try { $a = new ReflectionFunction([]); -} -catch(ReflectionException $re) { +} catch (TypeException $re) { echo "Ok - ".$re->getMessage().PHP_EOL; } |