protected function readDumpAssertFragment($fragment, $result = null, $declaredNamespacesInDump = null, $declaredNamespacesInRead = null) { if (!$result) { $result = $fragment; } $f = $this->parser->parseFragment($fragment, $declaredNamespacesInRead); $dump = $this->parser->dump($f, $declaredNamespacesInDump); $this->assertEquals(trim($result), trim($dump)); }
public function __construct(BaseParsingHelper $parser, $content) { $this->parser = $parser; $this->document = $parser->parseDocument($content); }