diff options
author | Zoe Slattery <zoe@php.net> | 2009-08-30 09:30:13 +0000 |
---|---|---|
committer | Zoe Slattery <zoe@php.net> | 2009-08-30 09:30:13 +0000 |
commit | 6a22ec3edabebbe57f53d6f42aacbd5ad97ad7ba (patch) | |
tree | 4d0202e6e7603adf5326a9fb1fd435d702dfc7e7 /ext/reflection/tests | |
parent | 94039c35b9183df5093c4cd6f868dad7b253bfde (diff) | |
download | php-git-6a22ec3edabebbe57f53d6f42aacbd5ad97ad7ba.tar.gz |
More tests from 2009 testfest
Diffstat (limited to 'ext/reflection/tests')
-rw-r--r-- | ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt b/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt new file mode 100644 index 0000000000..31d37a85f1 --- /dev/null +++ b/ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt @@ -0,0 +1,15 @@ +--TEST-- +ReflectionFunction::isDeprecated +--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 +$rc = new ReflectionFunction('ereg'); +echo var_dump($rc->isDeprecated()); +--EXPECTF-- +bool(true) |