Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Apr 19, 2024
1 parent ca150d9 commit f917163
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/PhpParser/Node/IdentifierTest.php
Expand Up @@ -3,6 +3,11 @@
namespace PhpParser\Node;

class IdentifierTest extends \PHPUnit\Framework\TestCase {
public function testConstructorThrows() {
self::expectException(\InvalidArgumentException::class);
new Identifier('');
}

public function testToString() {
$identifier = new Identifier('Foo');

Expand Down

0 comments on commit f917163

Please sign in to comment.