mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix tests now that class names are shown in correct casing
This commit is contained in:
@@ -24,5 +24,5 @@ $test2 = $test->__copy();
|
||||
var_dump($test2);
|
||||
?>
|
||||
--EXPECT--
|
||||
object(test)#2 (0) {
|
||||
object(Test)#2 (0) {
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ print_r($b->b_var);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
a Object
|
||||
A Object
|
||||
(
|
||||
[a_var] => Array
|
||||
(
|
||||
|
||||
@@ -18,7 +18,7 @@ class Name {
|
||||
class Person {
|
||||
private $name;
|
||||
|
||||
function Person($_name, $_address) {
|
||||
function person($_name, $_address) {
|
||||
$this->name = new Name($_name);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -20,6 +20,6 @@ print_r($t);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
a Object
|
||||
A Object
|
||||
(
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -7,6 +7,6 @@ $foo = new Foo;
|
||||
print_r($foo);
|
||||
?>
|
||||
--EXPECTF--
|
||||
foo Object
|
||||
Foo Object
|
||||
(
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user