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 | 28c5f6948b74e484be572dc4ebaf495395aceaec (patch) | |
| tree | 6a563ea9dac7878c83db18d4828f497d7f09c5f1 /ext/reflection/tests | |
| parent | 77cd4db9cc5d3c8d1f1c4b993ed06b7cc53e7761 (diff) | |
| download | php-git-28c5f6948b74e484be572dc4ebaf495395aceaec.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) |
