The test class should have Test at end and same name as the testing class Change-Id: Id0c90994d257fb325834e123b462f7f0849ac556
24 lines
390 B
PHP
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 ],
|
|
[ '' ],
|
|
];
|
|
}
|
|
|
|
}
|