summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionParameter_DefaultValueConstant_basic1.phpt
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-02-10 22:53:50 +0100
committerBob Weinand <bobwei9@hotmail.com>2015-02-10 22:53:50 +0100
commit4cd399547566dde5ff229990138d08cb80e631a9 (patch)
treece35b9f79877286c0d2e6b2d666ccb8807028d7f /ext/reflection/tests/ReflectionParameter_DefaultValueConstant_basic1.phpt
parent2b3bebfa4cbc51f4d78cc089d31e96123aa1da20 (diff)
downloadphp-git-4cd399547566dde5ff229990138d08cb80e631a9.tar.gz
Add a constant of type CONST_PERSISTENT to test
Diffstat (limited to 'ext/reflection/tests/ReflectionParameter_DefaultValueConstant_basic1.phpt')
-rw-r--r--ext/reflection/tests/ReflectionParameter_DefaultValueConstant_basic1.phpt3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/reflection/tests/ReflectionParameter_DefaultValueConstant_basic1.phpt b/ext/reflection/tests/ReflectionParameter_DefaultValueConstant_basic1.phpt
index cdd00d2624..20f4c95dc7 100644
--- a/ext/reflection/tests/ReflectionParameter_DefaultValueConstant_basic1.phpt
+++ b/ext/reflection/tests/ReflectionParameter_DefaultValueConstant_basic1.phpt
@@ -5,7 +5,7 @@ ReflectionParameter::isDefaultValueConstant() && getDefaultValueConstantName()
define("CONST_TEST_1", "const1");
-function ReflectionParameterTest($test1=array(), $test2 = CONST_TEST_1) {
+function ReflectionParameterTest($test1=array(), $test2 = CONST_TEST_1, $test3 = CASE_LOWER) {
echo $test;
}
$reflect = new ReflectionFunction('ReflectionParameterTest');
@@ -46,6 +46,7 @@ foreach ($params as $param) {
bool(false)
bool(true)
string(12) "CONST_TEST_1"
+string(10) "CASE_LOWER"
string(9) "self::bar"
string(9) "Foo2::bar"
string(12) "CONST_TEST_1"