helly Wed May 10 21:12:31 2006 UTC
Modified files:
/php-src/tests/classes interfaces_003.phpt tostring_003.phpt
Log:
- Fix tests
http://cvs.php.net/viewcvs.cgi/php-src/tests/classes/interfaces_003.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/tests/classes/interfaces_003.phpt
diff -u php-src/tests/classes/interfaces_003.phpt:1.1
php-src/tests/classes/interfaces_003.phpt:1.2
--- php-src/tests/classes/interfaces_003.phpt:1.1 Thu Oct 6 18:32:28 2005
+++ php-src/tests/classes/interfaces_003.phpt Wed May 10 21:12:31 2006
@@ -7,27 +7,20 @@
interface MyInterface
{
- public function __construct(Object $o);
+ public function __construct(MyObject $o);
}
class MyTestClass implements MyInterface
{
- public function __construct(Object $o)
+ public function __construct(MyObject $o)
{
}
}
$obj = new MyTestClass;
-class MyTestFail
-{
- public function __construct()
- {
- }
-}
-
?>
===DONE===
--EXPECTF--
-Catchable fatal error: Argument 1 passed to MyTestClass::__construct() must be
an object of class Object, called in %sinterfaces_003.php on line %d
+Catchable fatal error: Argument 1 passed to MyTestClass::__construct() must be
an object of class MyObject, called in %sinterfaces_003.php on line %d
http://cvs.php.net/viewcvs.cgi/php-src/tests/classes/tostring_003.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/tests/classes/tostring_003.phpt
diff -u php-src/tests/classes/tostring_003.phpt:1.3
php-src/tests/classes/tostring_003.phpt:1.4
--- php-src/tests/classes/tostring_003.phpt:1.3 Thu Oct 6 18:41:01 2005
+++ php-src/tests/classes/tostring_003.phpt Wed May 10 21:12:31 2006
@@ -1,7 +1,5 @@
--TEST--
ZE2 __toString() in __destruct/exception
---SKIPIF--
-<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip
ZendEngine 2 needed'); ?>
--FILE--
<?php
@@ -32,4 +30,4 @@
?>
====DONE====
--EXPECTF--
-Fatal error: Object of class Test could not be converted to string in
%stostring_003.php on line %d
+Fatal error: Method Test::__toString() must not throw an exception in
%stostring_003.php on line %d
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php