Fix tests now that class names are shown in correct casing

This commit is contained in:
Marcus Boerger 2003-12-22 22:50:02 +00:00
parent 4b76493f1e
commit 26a0abbd0c
14 changed files with 15 additions and 15 deletions

View file

@ -24,5 +24,5 @@ $test2 = $test->__copy();
var_dump($test2);
?>
--EXPECT--
object(test)#2 (0) {
object(Test)#2 (0) {
}

View file

@ -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

View 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);

View 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);

View 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);

View 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);

View 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);

View file

@ -27,7 +27,7 @@ print_r($b->b_var);
?>
--EXPECT--
a Object
A Object
(
[a_var] => Array
(

View file

@ -18,7 +18,7 @@ class Name {
class Person {
private $name;
function Person($_name, $_address) {
function person($_name, $_address) {
$this->name = new Name($_name);
}

View 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

View 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

View file

@ -20,6 +20,6 @@ print_r($t);
?>
--EXPECT--
a Object
A Object
(
)

View 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

View file

@ -7,6 +7,6 @@ $foo = new Foo;
print_r($foo);
?>
--EXPECTF--
foo Object
Foo Object
(
)