cvs: php-src /tests/classes type_hinting_002.phpt
| From: | Marcus Boerger | Date: | Sat, 27 Mar 2004 15:49:23 +0000 |
| Subject: | cvs: php-src /tests/classes type_hinting_002.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-26822@lists.php.net to get a copy of this message | ||
helly Sat Mar 27 10:49:23 2004 EDT
Added files:
/php-src/tests/classes type_hinting_002.phpt
Log:
Add new test
http://cvs.php.net/co.php/php-src/tests/classes/type_hinting_002.phpt?r=1.1&p=1
Index: php-src/tests/classes/type_hinting_002.phpt
+++ php-src/tests/classes/type_hinting_002.phpt
--TEST--
ZE2 class type hinting non existing class
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<'))
die('skip ZendEngine 2 needed'); ?>
--FILE--
<?php
class Foo {
function a(NonExisting $foo) {}
}
$o = new Foo;
$o->a($o);
?>
--EXPECTF--
Fatal error: Class 'NonExisting' not found in %stype_hinting_002.php on line %d