wiki.techinc.nl/tests/phpunit/includes/XmlJsTest.php
addshore fb16eb2abe Add more @covers tags and test cleanup
Other cleanup includes
 - Adding method scopes
 - Fixing php comments
 - Adding todos

Change-Id: I0a231008e6a59110ffcab6af1bd8c4d3ee13f21d
2013-10-22 08:59:42 +00:00

24 lines
384 B
PHP

<?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( '' ),
);
}
}