summaryrefslogtreecommitdiff
path: root/ext/reflection/tests
diff options
context:
space:
mode:
authorZoe Slattery <zoe@php.net>2009-08-30 09:30:13 +0000
committerZoe Slattery <zoe@php.net>2009-08-30 09:30:13 +0000
commit6a22ec3edabebbe57f53d6f42aacbd5ad97ad7ba (patch)
tree4d0202e6e7603adf5326a9fb1fd435d702dfc7e7 /ext/reflection/tests
parent94039c35b9183df5093c4cd6f868dad7b253bfde (diff)
downloadphp-git-6a22ec3edabebbe57f53d6f42aacbd5ad97ad7ba.tar.gz
More tests from 2009 testfest
Diffstat (limited to 'ext/reflection/tests')
-rw-r--r--ext/reflection/tests/ReflectionFunction_isDeprecated_basic.phpt15
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)