xref: /PHP-7.0/tests/classes/interfaces_001.phpt (revision 64b167d2)
1--TEST--
2ZE2 interfaces
3--SKIPIF--
4<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
5--FILE--
6<?php
7
8interface ThrowableInterface {
9	public function getMessage();
10}
11
12class Exception_foo implements ThrowableInterface {
13	public $foo = "foo";
14
15	public function getMessage() {
16		return $this->foo;
17	}
18}
19
20$foo = new Exception_foo;
21echo $foo->getMessage() . "\n";
22
23?>
24--EXPECT--
25foo
26
27