diff options
author | Zoe Slattery <zoe@php.net> | 2009-08-30 18:18:50 +0000 |
---|---|---|
committer | Zoe Slattery <zoe@php.net> | 2009-08-30 18:18:50 +0000 |
commit | 4cc35aeaaffcdfaacacdf0aafe3650259ab287f0 (patch) | |
tree | 3bd17fa2076eed64390871dbcecb18c8724eb269 /ext/reflection | |
parent | ceb607af13c370bb30b6bbbd8adde6e053eb7008 (diff) | |
download | php-git-4cc35aeaaffcdfaacacdf0aafe3650259ab287f0.tar.gz |
The last of the 2009 testfest tests
Diffstat (limited to 'ext/reflection')
-rw-r--r-- | ext/reflection/tests/ReflectionFunction_isClosure_basic.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/reflection/tests/ReflectionFunction_isClosure_basic.phpt b/ext/reflection/tests/ReflectionFunction_isClosure_basic.phpt new file mode 100644 index 0000000000..eeaf8d382c --- /dev/null +++ b/ext/reflection/tests/ReflectionFunction_isClosure_basic.phpt @@ -0,0 +1,18 @@ +--TEST-- +Reflection::isClosure +--CREDITS-- +Stefan Koopmanschap <stefan@phpgg.nl> +TestFest PHP|Tek +--SKIPIF-- +<?php +if (!extension_loaded('reflection') || !defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50300) { + print 'skip'; +} +?> +--FILE-- +<?php +$closure = function($param) { return "this is a closure"; }; +$rc = new ReflectionFunction($closure); +echo var_dump($rc->isClosure()); +--EXPECTF-- +bool(true) |