mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
31 lines
413 B
Plaintext
31 lines
413 B
Plaintext
|
--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";
|
||
|
|
||
|
--EXPECTF--
|
||
|
declare
|
||
|
return
|
||
|
function
|
||
|
use
|
||
|
use
|
||
|
|
||
|
Done
|