mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 02:16:41 +00:00
added more unit tests
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
--TEST--
|
||||
"convert_encoding" filter
|
||||
--TEMPLATE--
|
||||
{{ "愛していますか?"|convert_encoding('ISO-2022-JP', 'UTF-8')|convert_encoding('UTF-8', 'ISO-2022-JP') }}
|
||||
--DATA--
|
||||
return array()
|
||||
--EXPECT--
|
||||
愛していますか?
|
||||
@@ -0,0 +1,8 @@
|
||||
--TEST--
|
||||
"escape" filter
|
||||
--TEMPLATE--
|
||||
{{ "foo <br />"|e }}
|
||||
--DATA--
|
||||
return array()
|
||||
--EXPECT--
|
||||
foo <br />
|
||||
@@ -0,0 +1,8 @@
|
||||
--TEST--
|
||||
"escape" filter
|
||||
--TEMPLATE--
|
||||
{{ "愛していますか? <br />"|e }}
|
||||
--DATA--
|
||||
return array()
|
||||
--EXPECT--
|
||||
愛していますか? <br />
|
||||
Reference in New Issue
Block a user