public function Twig_Tests_FileExtensionEscapingStrategyTest::getGuessData in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/test/Twig/Tests/FileExtensionEscapingStrategyTest.php \Twig_Tests_FileExtensionEscapingStrategyTest::getGuessData()
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ FileExtensionEscapingStrategyTest.php, line 22
Class
Code
public function getGuessData() {
return array(
// default
array(
'html',
'foo.html',
),
array(
'html',
'foo.html.twig',
),
array(
'html',
'foo',
),
array(
'html',
'foo.bar.twig',
),
array(
'html',
'foo.txt/foo',
),
array(
'html',
'foo.txt/foo.js/',
),
// css
array(
'css',
'foo.css',
),
array(
'css',
'foo.css.twig',
),
array(
'css',
'foo.twig.css',
),
array(
'css',
'foo.js.css',
),
array(
'css',
'foo.js.css.twig',
),
// js
array(
'js',
'foo.js',
),
array(
'js',
'foo.js.twig',
),
array(
'js',
'foo.txt/foo.js',
),
array(
'js',
'foo.txt.twig/foo.js',
),
// txt
array(
false,
'foo.txt',
),
array(
false,
'foo.txt.twig',
),
);
}