Services: Convert BlobStoreFactory's static to a const now HHVM is gone
[lhc/web/wiklou.git] / tests / phpunit / includes / TemplateParserTest.php
index 4a803e6..cb321bb 100644 (file)
@@ -105,6 +105,17 @@ class TemplateParserTest extends MediaWikiTestCase {
                                false,
                                'Exception',
                        ],
+                       [
+                               'parentvars',
+                               [
+                                       'foo' => 'f',
+                                       'bar' => [
+                                               [ 'baz' => 'x' ],
+                                               [ 'baz' => 'y' ]
+                                       ]
+                               ],
+                               "f\n\n\tf x\n\n\tf y\n\n"
+                       ]
                ];
        }
 
@@ -116,7 +127,7 @@ class TemplateParserTest extends MediaWikiTestCase {
                $this->assertEquals( 'rrr', $tp->processTemplate( 'recurse', $data ) );
 
                $tp->enableRecursivePartials( false );
-               $this->setExpectedException( 'Exception' );
+               $this->setExpectedException( Exception::class );
                $tp->processTemplate( 'recurse', $data );
        }