32 lines
471 B
PHP
32 lines
471 B
PHP
<?php
|
|
|
|
/* testSimpleAssignment */
|
|
$a = false;
|
|
|
|
/* testControlStructure */
|
|
while(true) {}
|
|
$a = 1;
|
|
|
|
/* testClosureAssignment */
|
|
$a = function($b=false;){};
|
|
|
|
/* testHeredocFunctionArg */
|
|
myFunction(<<<END
|
|
Foo
|
|
END
|
|
, 'bar');
|
|
|
|
/* testSwitch */
|
|
switch ($a) {
|
|
case 1: {break;}
|
|
default: {break;}
|
|
}
|
|
|
|
/* testStatementAsArrayValue */
|
|
$a = [new Datetime];
|
|
$a = array(new Datetime);
|
|
$a = new Datetime;
|
|
|
|
/* testUseGroup */
|
|
use Vendor\Package\{ClassA as A, ClassB, ClassC as C};
|