3 * Parser-related tests that don't suit for parserTests.txt
6 class ExtraParserTest
extends PHPUnit_Framework_TestCase
{
11 $wgMemc = new FakeMemCachedClient
;
20 // Bug 8689 - Long numeric lines kill the parser
21 function testBug8689() {
22 $longLine = '1.' . str_repeat( '1234567890', 100000 ) . "\n";
24 $parser = new Parser();
25 $t = Title
::newFromText( 'Unit test' );
26 $options = new ParserOptions();
27 $this->assertEquals( "<p>$longLine</p>",
28 $parser->parse( $longLine, $t, $options )->getText() );