From: nikic Date: Sun, 30 Oct 2011 10:03:56 +0000 (+0100) Subject: Make long var/block tests faster X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=7da9f2f9ebcec48d008a32aa197f53cc8118692c;p=web%2Fkonrad%2Ftwig.git Make long var/block tests faster --- diff --git a/test/Twig/Tests/LexerTest.php b/test/Twig/Tests/LexerTest.php index 7594041..6e324ad 100644 --- a/test/Twig/Tests/LexerTest.php +++ b/test/Twig/Tests/LexerTest.php @@ -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);