xref: /php-src/tests/classes/interfaces_001.phpt (revision f8d79582)
1--TEST--
2ZE2 interfaces
3--FILE--
4<?php
5
6interface ThrowableInterface {
7    public function getMessage();
8}
9
10class Exception_foo implements ThrowableInterface {
11    public $foo = "foo";
12
13    public function getMessage() {
14        return $this->foo;
15    }
16}
17
18$foo = new Exception_foo;
19echo $foo->getMessage() . "\n";
20
21?>
22--EXPECT--
23foo
24