AMP_Img_Sanitizer_Test::test_converter PHP Метод

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

public test_converter ( $source, $expected )
    public function test_converter($source, $expected)
    {
        $dom = AMP_DOM_Utils::get_dom_from_content($source);
        $sanitizer = new AMP_Img_Sanitizer($dom);
        $sanitizer->sanitize();
        $content = AMP_DOM_Utils::get_content_from_dom($dom);
        $this->assertEquals($expected, $content);
    }