Skip to content

Commit e3af3d3

Browse files
committed
1 parent fdd0670 commit e3af3d3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Parser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
use Closure;
66
use SplFileInfo;
7+
use PhpDom\Contracts\DomElementInterface;
8+
use PhpDom\Contracts\DomNodeAttrInterface;
79

810
// todo: validari cu tipete
911
class Parser

tests/basic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
]);
88

99
$html = file_get_contents('./cases/1.html');
10-
$dom = $parser->parse($html);
10+
$dom = $parser->parse(new PhpDom\Source($html, 'cases/1.html'));
1111
$result = preg_replace('/[\n\r\t\s]*/', '', $dom);
1212
$expected = preg_replace('/[\n\r\t\s]*/', '', $html);
1313
$_expected = str_split($expected, 400);

0 commit comments

Comments
 (0)