Added MicrodataDOMDocument
This is for both gaining flexibility and made code cleaner.
This commit is contained in:
1 parent
daa8efa0fa
commit
e17ceac9ea
4 files changed
+46
-10
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace YusufKandemir\MicrodataParser\Tests;
|
||||
|
||||
use YusufKandemir\MicrodataParser\MicrodataDOMDocument;
|
||||
use YusufKandemir\MicrodataParser\MicrodataParser;
|
||||
|
||||
class MicrodataParserTest extends \PHPUnit\Framework\TestCase
|
||||
@@ -13,7 +14,7 @@ class MicrodataParserTest extends \PHPUnit\Framework\TestCase
|
||||
|
||||
protected function getParser($data)
|
||||
{
|
||||
$dom = new \DOMDocument;
|
||||
$dom = new MicrodataDOMDocument;
|
||||
$dom->loadHTML($data['source']);
|
||||
$dom->documentURI = $data['uri'];
|
||||
|
||||
|
||||
Reference in new issue
Block a user