mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 02:16:41 +00:00
Make long var/block tests faster
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user