MediaWiki
REL1_31
XmlJsTest.php
Go to the documentation of this file.
1
<?php
2
6
class
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
}
XmlJsCode
A wrapper class which causes Xml::encodeJsVar() and Xml::encodeJsCall() to interpret a given string a...
Definition
XmlJsCode.php:39
XmlJsTest
Xml.
Definition
XmlJsTest.php:6
XmlJsTest\testConstruction
testConstruction( $value)
XmlJsCode::__construct provideConstruction.
Definition
XmlJsTest.php:14
XmlJsTest\provideConstruction
static provideConstruction()
Definition
XmlJsTest.php:19
$value
$value
Definition
styleTest.css.php:45
tests
phpunit
includes
XmlJsTest.php
Generated on Mon Nov 25 2024 15:36:40 for MediaWiki by
1.10.0