public function MinifyHtmlUnitTestCase::testMinifyHtmlIframeReplacement in Minify Source HTML 7
Test Minify HTML Iframe Replacement.
File
- tests/
minifyhtml.test, line 89
Class
- MinifyHtmlUnitTestCase
- Minify HTML Unit Tests.
Code
public function testMinifyHtmlIframeReplacement() {
$input = "<html>\n";
$input .= " <head>\n";
$input .= " <title>Test HTML</title>\n";
$input .= " </head>\n";
$input .= " <body>\n";
$input .= " <iframe src=\"\" width=\"100\" height=\"100\" ></iframe>\n";
$input .= " </body>\n";
$input .= "</html>\n";
$expected_output = "<html><head><title>Test HTML</title></head><body><iframe src=\"\" width=\"100\" height=\"100\" ></iframe></body></html>";
$actual_output = $input;
minifyhtml_minify($actual_output);
$this
->assertEqual($expected_output, $actual_output, 'Minified source matches expected output.');
}