php-src/Zend/tests/declare_already_in_use.phpt

15 lines
238 B
Plaintext
Raw Normal View History

--TEST--
Cannot declare class, because the name is already in use
--FILE--
<?php
function test() {
class A {}
}
test();
test();
?>
--EXPECTF--
Fatal error: Cannot declare class A, because the name is already in use in %s on line %d