summaryrefslogtreecommitdiff
path: root/Zend/tests/grammar/regression_006.phpt
blob: 036ffa7445d3ae83b04bb4dd61f9b4317cc24c08 (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--
Test to ensure const list syntax declaration works
--FILE--
<?php

class Obj
{
    const DECLARE = 'declare',
          RETURN = 'return',
          FUNCTION = 'function',
          USE = 'use';
}

echo Obj::DECLARE, PHP_EOL;
echo Obj::RETURN, PHP_EOL;
echo Obj::FUNCTION, PHP_EOL;
echo Obj::USE, PHP_EOL;
echo Obj::

    USE, PHP_EOL;
echo "\nDone\n";

--EXPECT--
declare
return
function
use
use

Done