Skip to content

Commit

Permalink
Update HTMLNodeTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Dec 27, 2020
1 parent aa0414a commit 434c6ec
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/html/HTMLNodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,21 @@ public function testSetAttribute10() {
$node->removeAttribute('name');
$this->assertNull($node->getName());
}
/**
* @test
*/
public function testSetAttribute11() {
$node = new HTMLNode('div',[
'false' => false,
'true' => true,
'int' => 33,
'double' => 5.7
]);
$this->assertEquals('true', $node->getAttribute('true'));
$this->assertEquals('false', $node->getAttribute('false'));
$this->assertEquals(33, $node->getAttribute('int'));
$this->assertEquals(5.7, $node->getAttribute('double'));
}
/**
* @test
*/
Expand Down

0 comments on commit 434c6ec

Please sign in to comment.