helly           Thu Oct  6 14:34:16 2005 EDT

  Added files:                 (Branch: PHP_5_1)
    /php-src/tests/classes      interfaces_003.phpt 
  Log:
  - Add new test
  

http://cvs.php.net/co.php/php-src/tests/classes/interfaces_003.phpt?r=1.1&p=1
Index: php-src/tests/classes/interfaces_003.phpt
+++ php-src/tests/classes/interfaces_003.phpt
--TEST--
ZE2 interface and __construct
--FILE--
<?php

class MyObject {}

interface MyInterface
{
        public function __construct(Object $o);
}

class MyTestClass implements MyInterface
{
        public function __construct(Object $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

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

Reply via email to