mirror of
https://github.com/php/php-src.git
synced 2025-01-23 04:04:16 +08:00
31 lines
413 B
PHP
31 lines
413 B
PHP
--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
|