本文整理汇总了PHP中normalize_html_file函数的典型用法代码示例。如果您正苦于以下问题:PHP normalize_html_file函数的具体用法?PHP normalize_html_file怎么用?PHP normalize_html_file使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了normalize_html_file函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testChain
function testChain()
{
$tpl = $this->newPHPTAL('input/tal-content.06.html');
$res = normalize_html($tpl->execute());
$exp = normalize_html_file('output/tal-content.06.html');
$this->assertEquals($exp, $res);
}
示例2: testIt
function testIt()
{
$tpl = $this->newPHPTAL('input/talesphpwithreplace.01.html');
$res = normalize_html($tpl->execute());
$exp = normalize_html_file('output/talesphpwithreplace.01.html');
$this->assertEquals($exp, $res);
}
示例3: testDoesEscapeHTMLContent
function testDoesEscapeHTMLContent()
{
$tpl = $this->newPHPTAL('input/escape.html');
$exp = normalize_html_file('output/escape.html');
$res = normalize_html($tpl->execute());
$this->assertEquals($exp, $res);
}
示例4: testWithCondition
function testWithCondition()
{
$tpl = $this->newPHPTAL('input/tal-omit-tag.02.html');
$res = normalize_html($tpl->execute());
$exp = normalize_html_file('output/tal-omit-tag.02.html');
$this->assertEquals($exp, $res);
}
示例5: testInheritedMacroSlots
function testInheritedMacroSlots()
{
$tpl = $this->newPHPTAL('input/metal-macro.07.html');
$res = normalize_html($tpl->execute());
$exp = normalize_html_file('output/metal-macro.07.html');
$this->assertEquals($exp, $res);
}
示例6: testMultilineInTemplate
function testMultilineInTemplate()
{
$tpl = $this->newPHPTAL('input/tal-comment.02.html');
$res = normalize_html($tpl->execute());
$exp = normalize_html_file('output/tal-comment.02.html');
$this->assertEquals($exp, $res);
}
示例7: testEscape
function testEscape()
{
$tpl = $this->newPHPTAL('input/tales-string-03.html');
$res = $tpl->execute();
$res = normalize_html($res);
$exp = normalize_html_file('output/tales-string-03.html');
$this->assertEquals($exp, $res);
}
示例8: test
function test()
{
$tpl = $this->newPHPTAL('input/overloading-01.html');
$tpl->object = new OverloadTestClass();
$res = normalize_html($tpl->execute());
$exp = normalize_html_file('output/overloading-01.html');
$this->assertEquals($exp, $res);
}
示例9: testSimple
function testSimple()
{
$tpl = $this->newPHPTAL('input/content-encoding.xml');
$res = $tpl->execute();
$exp = normalize_html_file('output/content-encoding.xml');
$res = normalize_html($res);
$this->assertEquals($exp, $res);
}
示例10: testDtdInline
function testDtdInline()
{
$tpl = $this->newPHPTAL('input/doctype.04.html');
$res = $tpl->execute();
$res = normalize_html($res);
$exp = normalize_html_file('output/doctype.04.html');
$this->assertEquals($exp, $res);
}
示例11: testInContent
function testInContent()
{
$tpl = $this->newPHPTAL('input/php-mode.02.xml');
$res = $tpl->execute();
$exp = normalize_html_file('output/php-mode.02.xml');
$res = normalize_html($res);
$this->assertEquals($exp, $res);
}
示例12: testTrue
function testTrue()
{
$tpl = $this->newPHPTAL('input/tales-true.html');
$tpl->isNotTrue = false;
$tpl->isTrue = true;
$res = $tpl->execute();
$this->assertEquals(normalize_html_file('output/tales-true.html'), normalize_html($res));
}
示例13: testExists
function testExists()
{
$tpl = $this->newPHPTAL('input/tal-condition.03.html');
$tpl->somevar = true;
$res = normalize_html($tpl->execute());
$exp = normalize_html_file('output/tal-condition.03.html');
$this->assertEquals($exp, $res);
}
示例14: testExternalMacro
function testExternalMacro()
{
$filter = new OldMyPreFilter2();
$tpl = $this->newPHPTAL('input/prefilter.02.html');
$tpl->setPreFilter($filter);
$res = normalize_html($tpl->execute());
$exp = normalize_html_file('output/prefilter.02.html');
$this->assertEquals($exp, $res);
}
示例15: testMix
function testMix()
{
$tpl = $this->newPHPTAL('input/php.html');
$tpl->real = 'real value';
$tpl->foo = 'real';
$res = normalize_html($tpl->execute());
$exp = normalize_html_file('output/php.html');
$this->assertEquals($exp, $res);
}