mirror of
https://github.com/php/php-src.git
synced 2025-01-03 09:23:42 +08:00
13 lines
176 B
PHP
13 lines
176 B
PHP
--TEST--
|
|
Trying to throw exception of an interface
|
|
--FILE--
|
|
<?php
|
|
|
|
interface a { }
|
|
|
|
throw new a();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot instantiate interface a in %s on line %d
|