summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_027.phpt
blob: 574cc4b0fa0b0ad6c5a3c0a0e723933a39045bf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
027: Name ambiguity (class name & part of extertnal namespace name)
--FILE--
<?php
require "ns_027.inc";

class Foo {
  function __construct() {
    echo __CLASS__,"\n";
  }
  static function Bar() {
    echo __CLASS__,"\n";
  }
}

$x = new Foo;
Foo::Bar();
$x = new Foo\Bar\Foo;
Foo\Bar\Foo::Bar();
?>
--EXPECT--
Foo
Foo
Foo\Bar\Foo
Foo\Bar\Foo