[prev in list] [next in list] [prev in thread] [next in thread]
List: php-cvs
Subject: [PHP-CVS] cvs: php-src /tests/classes inheritance_003.phpt inheritance_004.phpt
From: "Marcus Boerger" <helly () php ! net>
Date: 2006-05-30 23:11:14
Message-ID: cvshelly1149030674 () cvsserver
[Download RAW message or body]
helly Tue May 30 23:11:14 2006 UTC
Added files:
/php-src/tests/classes inheritance_003.phpt inheritance_004.phpt
Log:
- Add new tests
http://cvs.php.net/viewcvs.cgi/php-src/tests/classes/inheritance_003.phpt?view=markup&rev=1.1
Index: php-src/tests/classes/inheritance_003.phpt
+++ php-src/tests/classes/inheritance_003.phpt
--TEST--
ZE2 method inheritance without interfaces
--FILE--
<?php
class A
{
function f($x) {}
}
class B extends A
{
function f() {}
}
?>
===DONE===
--EXPECTF--
Fatal error: Declaration of B::f() must be compatible with that of A::f() in \
%sinheritance_003.php on line %d
http://cvs.php.net/viewcvs.cgi/php-src/tests/classes/inheritance_004.phpt?view=markup&rev=1.1
Index: php-src/tests/classes/inheritance_004.phpt
+++ php-src/tests/classes/inheritance_004.phpt
--TEST--
ZE2 method inheritance without interfaces
--FILE--
<?php
class A
{
function f() {}
}
class B extends A
{
function f($x) {}
}
?>
===DONE===
--EXPECTF--
Fatal error: Declaration of B::f() must be compatible with that of A::f() in \
%sinheritance_004.php on line %d
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic