]> granicus.if.org Git - php/commitdiff
Fix tests' description for `ReflectionClass::getConstant`
authorGabriel Caruso <carusogabriel34@gmail.com>
Sat, 30 May 2020 21:21:39 +0000 (23:21 +0200)
committerGabriel Caruso <carusogabriel34@gmail.com>
Sun, 7 Jun 2020 13:46:39 +0000 (15:46 +0200)
ext/reflection/tests/ReflectionClass_getConstant_basic.phpt

index b8906b207068196ace1e8be09915df0bbe255fd3..67d1eee7e8374ef3e35385b36ea647a37db176e0 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-ReflectionClass::getConstants()
+ReflectionClass::getConstant()
 --FILE--
 <?php
 class C {
@@ -17,25 +17,25 @@ class X {
 
 $classes = array("C", "D", "E", "F", "X");
 foreach($classes as $class) {
-    echo "Reflecting on class $class: \n";
+    echo "Reflecting on class $class:\n";
     $rc = new ReflectionClass($class);
     var_dump($rc->getConstant('a'));
     var_dump($rc->getConstant('doesnotexist'));
 }
 ?>
 --EXPECT--
-Reflecting on class C: 
+Reflecting on class C:
 string(12) "hello from C"
 bool(false)
-Reflecting on class D: 
+Reflecting on class D:
 string(12) "hello from C"
 bool(false)
-Reflecting on class E: 
+Reflecting on class E:
 string(12) "hello from C"
 bool(false)
-Reflecting on class F: 
+Reflecting on class F:
 string(12) "hello from F"
 bool(false)
-Reflecting on class X: 
+Reflecting on class X:
 bool(false)
 bool(false)