PHP-Parser/test/PhpParser/CompatibilityTest.php
Nikita Popov a5033e3860 Format tests as well
The unnecessary parentheses for "new" are a bit annoying, but I
can live with it...
2022-08-29 21:52:53 +02:00

18 lines
480 B
PHP

<?php declare(strict_types=1);
namespace PhpParser;
use PhpParser\Node\Expr;
class CompatibilityTest extends \PHPUnit\Framework\TestCase {
public function testAliases1() {
$node = new Node\ClosureUse(new Expr\Variable('x'));
$this->assertTrue($node instanceof Expr\ClosureUse);
}
public function testAliases2() {
$node = new Node\Expr\ClosureUse(new Expr\Variable('x'));
$this->assertTrue($node instanceof Node\ClosureUse);
}
}