name_collision_07.phpt 280 B

123456789101112131415
  1. --TEST--
  2. Class declaration colliding with import (in namespace)
  3. --FILE--
  4. <?php
  5. namespace Foo {
  6. class Bar {}
  7. }
  8. namespace Bazzle {
  9. use Foo\Bar;
  10. class Bar {}
  11. }
  12. --EXPECTF--
  13. Fatal error: Cannot declare class Bazzle\Bar because the name is already in use in %s on line %d