]> granicus.if.org Git - php/commitdiff
Fix tests now that class names are shown in correct casing
authorMarcus Boerger <helly@php.net>
Mon, 22 Dec 2003 22:50:02 +0000 (22:50 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 22 Dec 2003 22:50:02 +0000 (22:50 +0000)
14 files changed:
Zend/tests/bug24884.phpt
Zend/tests/bug26166.phpt
tests/classes/__set__get_001.phpt
tests/classes/array_access_001.phpt
tests/classes/array_access_002.phpt
tests/classes/array_access_003.phpt
tests/classes/array_access_004.phpt
tests/classes/bug23951.phpt
tests/classes/dereferencing_001.phpt
tests/classes/interfaces_002.phpt
tests/classes/type_hinting_001.phpt
tests/lang/bug26182.phpt
tests/lang/type_hints_001.phpt
tests/run-test/test009.phpt

index ec216b2dac2a7e853e73ebc2074949e80dfb8c6a..81bb3d6414f0b9702a95bd6635e51b56c53df560 100755 (executable)
@@ -24,5 +24,5 @@ $test2 = $test->__copy();
 var_dump($test2);
 ?>
 --EXPECT--
-object(test)#2 (0) {
+object(Test)#2 (0) {
 }
index 46a8e3a614e3ec6f467d1b5b8c173a67d555a3e1..1c3934ac9176b0df954bc82fca71c524fdfe4bef 100755 (executable)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #26166: __toString() crash when no values returned
+Bug #26166 (__toString() crash when no values returned)
 --FILE--
 <?php
 class Foo
@@ -64,4 +64,4 @@ Hello World!
 Got the exception
 ===NONE===
 
-Fatal error: Method none::__toString() must return a string value in %sbug26166.php on line %d
+Fatal error: Method None::__toString() must return a string value in %sbug26166.php on line %d
index 3398fc5f8170fee02559ba76512cbf2c3d62befc..beb688c2229a4aa3af52e6b0f3e17e3bc26d9bca 100644 (file)
@@ -4,7 +4,7 @@ ZE2 __set() and __get()
 <?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
 --FILE--
 <?php
-class Setter {
+class setter {
        public $n;
        public $x = array('a' => 1, 'b' => 2, 'c' => 3);
 
index 08b741e1c8c1351ecf95c72cb43d34faa24a27f3..8a670c1c24e0562ce9c86ff5176e8f989c72b753 100644 (file)
@@ -6,7 +6,7 @@ ZE2 ArrayAccess
 ?>
 --FILE--
 <?php
-class Object implements ArrayAccess {
+class object implements ArrayAccess {
 
        public $a = array('1st', 1, 2=>'3rd', '4th'=>4);
 
index cb4416d7bdf2569691a47235366a600c8f122fce..584227ee896a3b2c9f29c637ab63e77aafab57ab 100644 (file)
@@ -6,7 +6,7 @@ ZE2 ArrayAccess::offsetSet without return
 ?>
 --FILE--
 <?php
-class Object implements ArrayAccess {
+class object implements ArrayAccess {
 
        public $a = array('1st', 1, 2=>'3rd', '4th'=>4);
 
index 28e7e836ad105063d0734019188df7354c82ad54..538ca0727638782c3cffd9c2643b8b6ed526e64c 100644 (file)
@@ -6,7 +6,7 @@ ZE2 ArrayAccess::offsetGet ambiguties
 ?>
 --FILE--
 <?php
-class Object implements ArrayAccess {
+class object implements ArrayAccess {
 
        public $a = array('1st', 1, 2=>'3rd', '4th'=>4);
 
index 8032d2864276dee5625885388092ac63740f961b..eec6c80d30791306337e72705971fe97787a9d0e 100644 (file)
@@ -6,7 +6,7 @@ ZE2 ArrayAccess::offsetGet ambiguties
 ?>
 --FILE--
 <?php
-class Object implements ArrayAccess {
+class object implements ArrayAccess {
 
        public $a = array('1st', 1, 2=>'3rd', '4th'=>4);
 
index a49d62f3fe33d357d9fb8b1ff8235cd154ed571d..2e272b87fe9adfe0ba13756f0403c4a55f1d366d 100644 (file)
@@ -27,7 +27,7 @@ print_r($b->b_var);
 
 ?>
 --EXPECT--
-a Object
+A Object
 (
     [a_var] => Array
         (
index 202602f14669ebc9e5aebe0853b45c7ca0fefcf7..dd2aba78e57888f2ce0c63230d92efd06e7b2661 100644 (file)
@@ -18,7 +18,7 @@ class Name {
 class Person {
        private $name;
 
-       function Person($_name, $_address) {
+       function person($_name, $_address) {
                $this->name = new Name($_name);
        }
 
index 7b3e2cf113425aac1bd8b3e25feffaa2125481d3..66d46f5d3608be39c5bea190657a8009c4c41f25 100644 (file)
@@ -25,5 +25,5 @@ echo $foo->getMessage() . "\n";
 ?>
 --EXPECTF--
 
-Fatal error: Class exception_foo contains 1 abstract methods and must therefore be declared abstract (throwable::getErrno) in %s on line %d
+Fatal error: Class Exception_foo contains 1 abstract methods and must therefore be declared abstract (Throwable::getErrno) in %s on line %d
 
index e6b97a587365a80ca78f107ff50a4b5701aa0f29..d4042a496d9241f147880b0184b1067ce7fc3e59 100644 (file)
@@ -35,4 +35,4 @@ $a->b($b);
 ?>
 --EXPECTF--
 
-Fatal error: Argument 1 must implement interface foo in %s on line %d
+Fatal error: Argument 1 must implement interface Foo in %s on line %d
index b37c7c2351129d19abc91abbd3add80276447b5a..7417293928a147c8e203807186ecb918b414ef54 100644 (file)
@@ -20,6 +20,6 @@ print_r($t);
 
 ?>
 --EXPECT--
-a Object
+A Object
 (
 )
index bd1577fe314f04b958be33bfde673e2623161837..99b7fac0eb79ee9f4d13a56aa9b71d18d87738e7 100644 (file)
@@ -23,4 +23,4 @@ type_hint_foo($bar);
 ?>
 --EXPECTF--
 
-Fatal error: Argument 1 must be an instance of foo in %s on line %d
+Fatal error: Argument 1 must be an instance of Foo in %s on line %d
index f6412cbda6c58b25b76f69da0eb55474edf0fcca..650686f69017d355ab24c7b7e7e98e27c6b9adf5 100644 (file)
@@ -7,6 +7,6 @@ $foo = new Foo;
 print_r($foo);
 ?>
 --EXPECTF--
-foo Object
+Foo Object
 (
 )