- Removed double spaces - Added space after if/switch/foreach - Removed space on elseif - Added space around parentheses - Added newline at end of file - Removed space before semicolon at end of line Change-Id: Id40b87e04786c6111e6686d7f7eea1e588bdf37d
24 lines
385 B
PHP
24 lines
385 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( '' ),
|
|
);
|
|
}
|
|
|
|
}
|