foo
'); + $doc = \Dom\HTMLDocument::createFromString('foo
'); $this->assertDumpMatchesFormat(<<<'EODUMP' - DOM\HTMLDocument {%A + Dom\HTMLDocument {%A html: "foo
" } EODUMP, @@ -160,9 +160,9 @@ public function testCastText() */ public function testCastModernText() { - $text = \DOM\HTMLDocument::createEmpty()->createTextNode('foo'); + $text = \Dom\HTMLDocument::createEmpty()->createTextNode('foo'); $this->assertDumpMatchesFormat(<<<'EODUMP' - DOM\Text {%A + Dom\Text {%A +wholeText: ? string } EODUMP, @@ -192,13 +192,13 @@ public function testCastAttr() */ public function testCastModernAttr() { - $attr = \DOM\HTMLDocument::createEmpty()->createAttribute('attr'); + $attr = \Dom\HTMLDocument::createEmpty()->createAttribute('attr'); $this->assertDumpMatchesFormat(<<<'EODUMP' - DOM\Attr {%A + Dom\Attr {%A +name: ? string +value: ? string - +ownerElement: ? ?DOM\Element + +ownerElement: ? ?Dom\Element +specified: true } EODUMP, @@ -224,10 +224,10 @@ public function testCastElement() */ public function testCastModernElement() { - $attr = \DOM\HTMLDocument::createEmpty()->createElement('foo'); + $attr = \Dom\HTMLDocument::createEmpty()->createElement('foo'); $this->assertDumpMatchesFormat(<<<'EODUMP' - DOM\Element {%A + Dom\Element {%A +tagName: ? string %A} EODUMP, @@ -259,14 +259,14 @@ public function testCastDocumentType() */ public function testCastModernDocumentType() { - $implementation = new \DOM\Implementation(); + $implementation = new \Dom\Implementation(); $type = $implementation->createDocumentType('html', 'publicId', 'systemId'); $this->assertDumpMatchesFormat(<<<'EODUMP' - DOM\DocumentType {%A + Dom\DocumentType {%A +name: ? string - +entities: ? DOM\DTDNamedNodeMap - +notations: ? DOM\DTDNamedNodeMap + +entities: ? Dom\DtdNamedNodeMap + +notations: ? Dom\DtdNamedNodeMap +publicId: ? string +systemId: ? string +internalSubset: ? ?string @@ -295,10 +295,10 @@ public function testCastProcessingInstruction() */ public function testCastModernProcessingInstruction() { - $entity = \DOM\HTMLDocument::createEmpty()->createProcessingInstruction('target', 'data'); + $entity = \Dom\HTMLDocument::createEmpty()->createProcessingInstruction('target', 'data'); $this->assertDumpMatchesFormat(<<<'EODUMP' - DOM\ProcessingInstruction {%A + Dom\ProcessingInstruction {%A +data: ? string +length: ? int +target: ? string @@ -327,11 +327,11 @@ public function testCastXPath() */ public function testCastModernXPath() { - $entity = new \DOM\XPath(\DOM\HTMLDocument::createEmpty()); + $entity = new \Dom\XPath(\Dom\HTMLDocument::createEmpty()); $this->assertDumpEquals(<<<'EODUMP' - DOM\XPath { - +document: ? DOM\Document + Dom\XPath { + +document: ? Dom\Document +registerNodeNamespaces: ? bool } EODUMP,Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: