mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-02-22 09:52:39 +01:00
18 lines
480 B
PHP
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);
|
|
}
|
|
}
|