mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 04:16:28 +00:00
Fixing failing test in Twig_Tests_Node_Expression_FilterTest when mb extension is not installed. Fixes #93
This commit is contained in:
committed by
Fabien Potencier
parent
df0651b9af
commit
c83bdefcb6
@@ -163,7 +163,11 @@ class Twig_Tests_Node_Expression_FilterTest extends Twig_Tests_Node_TestCase
|
||||
), array(), 0);
|
||||
$node = new Twig_Node_Expression_Filter($expr, $filters, 0);
|
||||
|
||||
$tests[] = array($node, 'twig_lower_filter($this->env, twig_upper_filter($this->env, "foo"), "bar", "foobar")');
|
||||
if (function_exists('mb_get_info')) {
|
||||
$tests[] = array($node, 'twig_lower_filter($this->env, twig_upper_filter($this->env, "foo"), "bar", "foobar")');
|
||||
} else {
|
||||
$tests[] = array($node, 'strtolower(strtoupper("foo"), "bar", "foobar")');
|
||||
}
|
||||
|
||||
return $tests;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user