blob: 46ae8290aedb0b60a3d39077f278f14e8837ac5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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--
Fatal error: Argument 1 passed to MyTestClass::__construct() must be an object of class Object, called in %sinterfaces_003.php on line %d
|