From c3cf3f29bd97a43414f479c0b1244c24ac5793af Mon Sep 17 00:00:00 2001 From: nikic Date: Sun, 29 Apr 2012 23:04:06 +0200 Subject: [PATCH] Adjust test_old to use new Lexer injection method --- test_old/run.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test_old/run.php b/test_old/run.php index b49d5c5d..f8450615 100644 --- a/test_old/run.php +++ b/test_old/run.php @@ -31,7 +31,7 @@ if ('Symfony' === $TEST_TYPE) { require_once dirname(__FILE__) . '/../lib/PHPParser/Autoloader.php'; PHPParser_Autoloader::register(); -$parser = new PHPParser_Parser; +$parser = new PHPParser_Parser(new PHPParser_Lexer_Emulative); $prettyPrinter = new PHPParser_PrettyPrinter_Zend; $nodeDumper = new PHPParser_NodeDumper; @@ -87,7 +87,7 @@ foreach (new RecursiveIteratorIterator( try { $startTime = microtime(true); - $stmts = $parser->parse(new PHPParser_Lexer_Emulative($code)); + $stmts = $parser->parse($code); $parseTime += microtime(true) - $startTime; $startTime = microtime(true); @@ -96,7 +96,7 @@ foreach (new RecursiveIteratorIterator( try { $startTime = microtime(true); - $ppStmts = $parser->parse(new PHPParser_Lexer_Emulative($code)); + $ppStmts = $parser->parse($code); $reparseTime += microtime(true) - $startTime; $startTime = microtime(true);