helly Thu Feb 26 15:11:29 2004 EDT
Added files:
/php-src/tests/classes abstract_derived.phpt
Log:
Fixes for abstract classes
http://cvs.php.net/co.php/php-src/tests/classes/abstract_derived.phpt?r=1.1&p=1
Index: php-src/tests/classes/abstract_derived.phpt
+++ php-src/tests/classes/abstract_derived.phpt
--TEST--
ZE2 A derived class with an abstract method must be abstract
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2
needed'); ?>
--FILE--
<?php
class base {
}
class derived extends base {
abstract function show();
}
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
Fatal error: Class derived contains 1 abstract methods and must therefore be declared
abstract (derived::show) in %sabstract_derived.php on line %d
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php