ns_030.phpt 222 B

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