mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-26 12:04:39 +01:00
Add CallLike test for NullsafeMethodCall
This commit is contained in:
parent
4122ff3a91
commit
63f8699143
@ -29,8 +29,10 @@ class CallableLikeTest extends \PHPUnit\Framework\TestCase {
|
||||
[new StaticCall(new Name('Test'), 'test', $normalArgs), false],
|
||||
[new StaticCall(new Name('Test'), 'test', $callableArgs), true],
|
||||
[new New_(new Name('Test'), $normalArgs), false],
|
||||
[new NullsafeMethodCall(new Variable('this'), 'test', $normalArgs), false],
|
||||
// This is not legal code, but accepted by the parser.
|
||||
[new New_(new Name('Test'), $callableArgs), true],
|
||||
[new NullsafeMethodCall(new Variable('this'), 'test', $callableArgs), true],
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user