當前位置: 首頁>>代碼示例>>PHP>>正文


PHP normalize_html_file函數代碼示例

本文整理匯總了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);
 }
開發者ID:ShaeS,項目名稱:Pine-Birch,代碼行數:7,代碼來源:TalContentTest.php

示例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);
 }
開發者ID:gbisra,項目名稱:Computer-r-us,代碼行數:7,代碼來源:TalesPhpWithReplaceTest.php

示例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);
 }
開發者ID:gbisra,項目名稱:Computer-r-us,代碼行數:7,代碼來源:EscapeHTMLTest.php

示例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);
 }
開發者ID:ShaeS,項目名稱:Pine-Birch,代碼行數:7,代碼來源:TalOmitTagTest.php

示例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);
 }
開發者ID:gbisra,項目名稱:Computer-r-us,代碼行數:7,代碼來源:MetalMacroTest.php

示例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);
 }
開發者ID:gbisra,項目名稱:Computer-r-us,代碼行數:7,代碼來源:TalCommentTest.php

示例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);
 }
開發者ID:ShaeS,項目名稱:Pine-Birch,代碼行數:8,代碼來源:TalesStringTest.php

示例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);
 }
開發者ID:gbisra,項目名稱:Computer-r-us,代碼行數:8,代碼來源:OverloadingTest.php

示例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);
 }
開發者ID:gbisra,項目名稱:Computer-r-us,代碼行數:8,代碼來源:ContentEncodingTest.php

示例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);
 }
開發者ID:ShaeS,項目名稱:Pine-Birch,代碼行數:8,代碼來源:DoctypeTest.php

示例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);
 }
開發者ID:gbisra,項目名稱:Computer-r-us,代碼行數:8,代碼來源:PhpModeTest.php

示例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));
 }
開發者ID:gbisra,項目名稱:Computer-r-us,代碼行數:8,代碼來源:TalesTest.php

示例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);
 }
開發者ID:ShaeS,項目名稱:Pine-Birch,代碼行數:8,代碼來源:TalConditionTest.php

示例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);
 }
開發者ID:gbisra,項目名稱:Computer-r-us,代碼行數:9,代碼來源:OldPreFilterTest.php

示例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);
 }
開發者ID:ShaeS,項目名稱:Pine-Birch,代碼行數:9,代碼來源:TalesPhpTest.php


注:本文中的normalize_html_file函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。