eZ\Publish\Core\FieldType\Tests\RichText\Normalizer\DocumentTypeDefinitionTest::testNormalize PHP Метод

testNormalize() публичный Метод

public testNormalize ( string $documentElement, string $namespace, string $dtdPath, string $input, string $expectedOutput, string $expectedSaved )
$documentElement string
$namespace string
$dtdPath string
$input string
$expectedOutput string
$expectedSaved string
    public function testNormalize($documentElement, $namespace, $dtdPath, $input, $expectedOutput, $expectedSaved)
    {
        $normalizer = $this->getNormalizer($documentElement, $namespace, $dtdPath);
        $output = $normalizer->normalize($input);
        $this->assertEquals($expectedOutput, $output);
        $normalizedDocument = new DOMDocument();
        $normalizedDocument->loadXML($output, LIBXML_NOENT);
        $expectedDocument = new DOMDocument();
        $expectedDocument->loadXML($expectedSaved, LIBXML_NOENT);
        $this->assertEquals($expectedDocument, $normalizedDocument);
    }