mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
14 lines
182 B
PHP
14 lines
182 B
PHP
--TEST--
|
|
Class Property Expressions
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
const BAR = 1 << 0;
|
|
const BAZ = 1 << 1;
|
|
public $bar = self::BAR | self::BAZ;
|
|
}
|
|
echo (new Foo)->bar;
|
|
?>
|
|
--EXPECT--
|
|
3
|