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

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to