summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_trailing_comma_01.phpt
blob: cbd443f0f79b135083e258732f47866dbfe05686 (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
26
27
28
29
30
--TEST--
Mixed group use declaration can contain trailing comma
--FILE--
<?php
namespace Foo {
  const FOO_CONST = "Foo const\n";
  function foo_func() {
    echo "Foo func\n";
  }
  class FooClass {
    function __construct() {
      echo "Foo class\n";
    }
  }
}
namespace {
  use Foo\{
    const FOO_CONST,
    function foo_func,
    FooClass as BarClass,
  };
  echo FOO_CONST;
  foo_func();
  new BarClass;
}
?>
--EXPECT--
Foo const
Foo func
Foo class