Make long var/block tests faster

This commit is contained in:
nikic
2011-10-30 11:03:56 +01:00
parent cf6116c2a8
commit 7da9f2f9eb
+4 -4
View File
@@ -119,9 +119,9 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
// should not throw an exception
}
public function testLongBlock()
public function testLongVar()
{
$template = '{{ '.str_repeat('*', 100000).' }}';
$template = '{{ '.str_repeat('x', 100000).' }}';
$lexer = new Twig_Lexer(new Twig_Environment());
$stream = $lexer->tokenize($template);
@@ -129,9 +129,9 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
// should not throw an exception
}
public function testLongBlock1()
public function testLongBlock()
{
$template = '{% '.str_repeat('*', 100000).' %}';
$template = '{% '.str_repeat('x', 100000).' %}';
$lexer = new Twig_Lexer(new Twig_Environment());
$stream = $lexer->tokenize($template);