From 7da9f2f9ebcec48d008a32aa197f53cc8118692c Mon Sep 17 00:00:00 2001 From: nikic Date: Sun, 30 Oct 2011 11:03:56 +0100 Subject: [PATCH] Make long var/block tests faster --- test/Twig/Tests/LexerTest.php | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) 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); -- 1.7.2.5