Skip to content

Commit

Permalink
Merge 64c6770 into c06222c
Browse files Browse the repository at this point in the history
  • Loading branch information
voku committed Jan 29, 2022
2 parents c06222c + 64c6770 commit f3f2848
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/example_remove_content_from_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
$templateHtml = $htmlTmp->save();

// dump contents
echo $templateHtml;
echo $templateHtml;
3 changes: 2 additions & 1 deletion tests/SimpleHtmlDomTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ public function testFindInChildNode()
static::assertSame('1', $v);
}

public function testIssue63() {
public function testIssue63()
{
$dom = (new voku\helper\HtmlDomParser())->loadHtml('<div> foo bar </div>');
static::assertSame('foo bar', $dom->findOne('div')->innerHtml());
static::assertInstanceOf(\voku\helper\SimpleHtmlDomBlank::class, $dom->findOne('span'));
Expand Down
3 changes: 2 additions & 1 deletion tests/XmlDomParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ public function testXmlFindV3()
static::assertSame('int', $types[0]->text());
}

public function testIssue63() {
public function testIssue63()
{
$dom = (new voku\helper\XmlDomParser())->loadHtml('<Foo> foo bar </Foo>');
static::assertSame(' foo bar ', $dom->findOne('Foo')->innerXml());
static::assertInstanceOf(\voku\helper\SimpleXmlDomBlank::class, $dom->findOne('Bar'));
Expand Down

0 comments on commit f3f2848

Please sign in to comment.