1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 09:42:22 +01:00
Files
archived-php-src/tests/classes/interfaces_001.phpt
2017-01-30 22:50:25 +01:00

25 lines
317 B
PHP

--TEST--
ZE2 interfaces
--FILE--
<?php
interface ThrowableInterface {
public function getMessage();
}
class Exception_foo implements ThrowableInterface {
public $foo = "foo";
public function getMessage() {
return $this->foo;
}
}
$foo = new Exception_foo;
echo $foo->getMessage() . "\n";
?>
--EXPECT--
foo