Skip to content

Commit 26a0abb

Browse files
committed
Fix tests now that class names are shown in correct casing
1 parent 4b76493 commit 26a0abb

14 files changed

+15
-15
lines changed

Zend/tests/bug24884.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ $test2 = $test->__copy();
2424
var_dump($test2);
2525
?>
2626
--EXPECT--
27-
object(test)#2 (0) {
27+
object(Test)#2 (0) {
2828
}

Zend/tests/bug26166.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #26166: __toString() crash when no values returned
2+
Bug #26166 (__toString() crash when no values returned)
33
--FILE--
44
<?php
55
class Foo
@@ -64,4 +64,4 @@ Hello World!
6464
Got the exception
6565
===NONE===
6666

67-
Fatal error: Method none::__toString() must return a string value in %sbug26166.php on line %d
67+
Fatal error: Method None::__toString() must return a string value in %sbug26166.php on line %d

tests/classes/__set__get_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ZE2 __set() and __get()
44
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
55
--FILE--
66
<?php
7-
class Setter {
7+
class setter {
88
public $n;
99
public $x = array('a' => 1, 'b' => 2, 'c' => 3);
1010

tests/classes/array_access_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ZE2 ArrayAccess
66
?>
77
--FILE--
88
<?php
9-
class Object implements ArrayAccess {
9+
class object implements ArrayAccess {
1010

1111
public $a = array('1st', 1, 2=>'3rd', '4th'=>4);
1212

tests/classes/array_access_002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ZE2 ArrayAccess::offsetSet without return
66
?>
77
--FILE--
88
<?php
9-
class Object implements ArrayAccess {
9+
class object implements ArrayAccess {
1010

1111
public $a = array('1st', 1, 2=>'3rd', '4th'=>4);
1212

tests/classes/array_access_003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ZE2 ArrayAccess::offsetGet ambiguties
66
?>
77
--FILE--
88
<?php
9-
class Object implements ArrayAccess {
9+
class object implements ArrayAccess {
1010

1111
public $a = array('1st', 1, 2=>'3rd', '4th'=>4);
1212

tests/classes/array_access_004.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ZE2 ArrayAccess::offsetGet ambiguties
66
?>
77
--FILE--
88
<?php
9-
class Object implements ArrayAccess {
9+
class object implements ArrayAccess {
1010

1111
public $a = array('1st', 1, 2=>'3rd', '4th'=>4);
1212

tests/classes/bug23951.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ print_r($b->b_var);
2727

2828
?>
2929
--EXPECT--
30-
a Object
30+
A Object
3131
(
3232
[a_var] => Array
3333
(

tests/classes/dereferencing_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Name {
1818
class Person {
1919
private $name;
2020

21-
function Person($_name, $_address) {
21+
function person($_name, $_address) {
2222
$this->name = new Name($_name);
2323
}
2424

tests/classes/interfaces_002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ echo $foo->getMessage() . "\n";
2525
?>
2626
--EXPECTF--
2727

28-
Fatal error: Class exception_foo contains 1 abstract methods and must therefore be declared abstract (throwable::getErrno) in %s on line %d
28+
Fatal error: Class Exception_foo contains 1 abstract methods and must therefore be declared abstract (Throwable::getErrno) in %s on line %d
2929

tests/classes/type_hinting_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ $a->b($b);
3535
?>
3636
--EXPECTF--
3737

38-
Fatal error: Argument 1 must implement interface foo in %s on line %d
38+
Fatal error: Argument 1 must implement interface Foo in %s on line %d

tests/lang/bug26182.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ print_r($t);
2020

2121
?>
2222
--EXPECT--
23-
a Object
23+
A Object
2424
(
2525
)

tests/lang/type_hints_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ type_hint_foo($bar);
2323
?>
2424
--EXPECTF--
2525

26-
Fatal error: Argument 1 must be an instance of foo in %s on line %d
26+
Fatal error: Argument 1 must be an instance of Foo in %s on line %d

tests/run-test/test009.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ $foo = new Foo;
77
print_r($foo);
88
?>
99
--EXPECTF--
10-
foo Object
10+
Foo Object
1111
(
1212
)

0 commit comments

Comments
 (0)