eZ\Publish\Core\FieldType\Tests\RichText\Normalizer\DocumentTypeDefinitionTest::testAcceptNoXmlDeclaration PHP Method

testAcceptNoXmlDeclaration() public method

public testAcceptNoXmlDeclaration ( string $documentElement, string $namespace, string $dtdPath, string $input )
$documentElement string
$namespace string
$dtdPath string
$input string Ignored
    public function testAcceptNoXmlDeclaration($documentElement, $namespace, $dtdPath, $input)
    {
        $normalizer = $this->getNormalizer($documentElement, $namespace, $dtdPath);
        $this->assertTrue($normalizer->accept(<<<XML
<section xmlns="http://ez.no/namespaces/ezpublish5/xhtml5/edit">
  <p>You will need chili pepper, black pepper, bat wings (dried and grounded) and tomato juice.</p>
  <p>Then you combine the ingredients and shake.</p>
  <p>Serve chilled.</p>
  <p>The price is 165¥.</p>
</section>
XML
));
    }