wiki.techinc.nl/tests/phpunit/includes/XmlJsTest.php
Umherirrender 29323f5622 Fix test class names to match convention
The test class should have Test at end
and same name as the testing class

Change-Id: Id0c90994d257fb325834e123b462f7f0849ac556
2017-12-10 11:41:59 +01:00

24 lines
390 B
PHP

<?php
/**
* @group Xml
*/
class XmlJsTest extends PHPUnit_Framework_TestCase {
/**
* @covers XmlJsCode::__construct
* @dataProvider provideConstruction
*/
public function testConstruction( $value ) {
$obj = new XmlJsCode( $value );
$this->assertEquals( $value, $obj->value );
}
public static function provideConstruction() {
return [
[ null ],
[ '' ],
];
}
}