]> granicus.if.org Git - php/commitdiff
Add a constant of type CONST_PERSISTENT to test
authorBob Weinand <bobwei9@hotmail.com>
Tue, 10 Feb 2015 21:53:50 +0000 (22:53 +0100)
committerBob Weinand <bobwei9@hotmail.com>
Tue, 10 Feb 2015 21:53:50 +0000 (22:53 +0100)
ext/reflection/tests/ReflectionParameter_DefaultValueConstant_basic1.phpt

index cdd00d26248f006bfa96a611098826340e5daa5e..20f4c95dc7a7d31d6ee1186f5c76f8b329f66335 100644 (file)
@@ -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"