diff options
Diffstat (limited to 'tests/phpunit/includes/XmlJsTest.php')
-rw-r--r-- | tests/phpunit/includes/XmlJsTest.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/phpunit/includes/XmlJsTest.php b/tests/phpunit/includes/XmlJsTest.php new file mode 100644 index 00000000..c5b411fb --- /dev/null +++ b/tests/phpunit/includes/XmlJsTest.php @@ -0,0 +1,9 @@ +<?php +class XmlJs extends MediaWikiTestCase { + public function testConstruction() { + $obj = new XmlJsCode( null ); + $this->assertNull( $obj->value ); + $obj = new XmlJsCode( '' ); + $this->assertSame( $obj->value, '' ); + } +} |