diff options
Diffstat (limited to 'tests/phpunit/includes/XmlJsTest.php')
-rw-r--r-- | tests/phpunit/includes/XmlJsTest.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/phpunit/includes/XmlJsTest.php b/tests/phpunit/includes/XmlJsTest.php new file mode 100644 index 00000000..161468e2 --- /dev/null +++ b/tests/phpunit/includes/XmlJsTest.php @@ -0,0 +1,24 @@ +<?php + +/** + * @group Xml + */ +class XmlJs extends MediaWikiTestCase { + + /** + * @covers XmlJsCode::__construct + * @dataProvider provideConstruction + */ + public function testConstruction( $value ) { + $obj = new XmlJsCode( $value ); + $this->assertEquals( $value, $obj->value ); + } + + public function provideConstruction(){ + return array( + array( null ), + array( '' ), + ); + } + +} |