summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/TemplateParserTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/TemplateParserTest.php')
-rw-r--r--tests/phpunit/includes/TemplateParserTest.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/phpunit/includes/TemplateParserTest.php b/tests/phpunit/includes/TemplateParserTest.php
index 81854ff3..3b37f4a4 100644
--- a/tests/phpunit/includes/TemplateParserTest.php
+++ b/tests/phpunit/includes/TemplateParserTest.php
@@ -57,7 +57,20 @@ class TemplateParserTest extends MediaWikiTestCase {
array(),
false,
'RuntimeException',
- )
+ ),
+ array(
+ 'has_partial',
+ array(
+ 'planet' => 'world',
+ ),
+ "Partial hello world!\n in here\n",
+ ),
+ array(
+ 'bad_partial',
+ array(),
+ false,
+ 'Exception',
+ ),
);
}
}