Skip to content

Commit

Permalink
Avoid PHPUnit deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Jan 7, 2024
1 parent 1eeeb2d commit f603e19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/PhpParser/NodeAbstractTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ public function testConstruct(array $attributes, Node $node) {
$this->assertSame('/** doc comment */', $node->getDocComment()->getText());
$this->assertSame('value1', $node->subNode1);
$this->assertSame('value2', $node->subNode2);
$this->assertObjectHasAttribute('subNode1', $node);
$this->assertObjectHasAttribute('subNode2', $node);
$this->assertObjectNotHasAttribute('subNode3', $node);
$this->assertTrue(isset($node->subNode1));
$this->assertTrue(isset($node->subNode2));
$this->assertTrue(!isset($node->subNode3));
$this->assertSame($attributes, $node->getAttributes());
$this->assertSame($attributes['comments'], $node->getComments());

Expand Down

0 comments on commit f603e19

Please sign in to comment.