MediaWiki REL1_31
XmlJsTest.php
Go to the documentation of this file.
1<?php
2
6class XmlJsTest extends PHPUnit\Framework\TestCase {
7
8 use MediaWikiCoversValidator;
9
14 public function testConstruction( $value ) {
15 $obj = new XmlJsCode( $value );
16 $this->assertEquals( $value, $obj->value );
17 }
18
19 public static function provideConstruction() {
20 return [
21 [ null ],
22 [ '' ],
23 ];
24 }
25
26}
A wrapper class which causes Xml::encodeJsVar() and Xml::encodeJsCall() to interpret a given string a...
Definition XmlJsCode.php:39
testConstruction( $value)
XmlJsCode::__construct provideConstruction.
Definition XmlJsTest.php:14
static provideConstruction()
Definition XmlJsTest.php:19