Browse Source

Fix tests now that class names are shown in correct casing

PEAR_1_4DEV
Marcus Boerger 23 years ago
parent
commit
26a0abbd0c
  1. 2
      Zend/tests/bug24884.phpt
  2. 4
      Zend/tests/bug26166.phpt
  3. 2
      tests/classes/__set__get_001.phpt
  4. 2
      tests/classes/array_access_001.phpt
  5. 2
      tests/classes/array_access_002.phpt
  6. 2
      tests/classes/array_access_003.phpt
  7. 2
      tests/classes/array_access_004.phpt
  8. 2
      tests/classes/bug23951.phpt
  9. 2
      tests/classes/dereferencing_001.phpt
  10. 2
      tests/classes/interfaces_002.phpt
  11. 2
      tests/classes/type_hinting_001.phpt
  12. 2
      tests/lang/bug26182.phpt
  13. 2
      tests/lang/type_hints_001.phpt
  14. 2
      tests/run-test/test009.phpt

2
Zend/tests/bug24884.phpt

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

4
Zend/tests/bug26166.phpt

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

2
tests/classes/__set__get_001.phpt

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

2
tests/classes/array_access_001.phpt

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

2
tests/classes/array_access_002.phpt

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

2
tests/classes/array_access_003.phpt

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

2
tests/classes/array_access_004.phpt

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

2
tests/classes/bug23951.phpt

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

2
tests/classes/dereferencing_001.phpt

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

2
tests/classes/interfaces_002.phpt

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

2
tests/classes/type_hinting_001.phpt

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

2
tests/lang/bug26182.phpt

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

2
tests/lang/type_hints_001.phpt

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

2
tests/run-test/test009.phpt

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