- Add new test

This commit is contained in:
Marcus Boerger 2005-10-06 18:32:28 +00:00
parent 61eae75ec3
commit f1d1c5e282

View File

@ -0,0 +1,33 @@
--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