ns_029.phpt 225 B

123456789101112
  1. --TEST--
  2. 029: Name ambiguity (class name & import name)
  3. --FILE--
  4. <?php
  5. use A\B as Foo;
  6. class Foo {
  7. }
  8. new Foo();
  9. --EXPECTF--
  10. Fatal error: Cannot declare class Foo because the name is already in use in %sns_029.php on line 4