dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "i18n: Rename 11 messages for case-compliance"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
libs
/
XmlTypeCheckTest.php
diff --git
a/tests/phpunit/includes/libs/XmlTypeCheckTest.php
b/tests/phpunit/includes/libs/XmlTypeCheckTest.php
index
5c5eeaa
..
8616b41
100644
(file)
--- a/
tests/phpunit/includes/libs/XmlTypeCheckTest.php
+++ b/
tests/phpunit/includes/libs/XmlTypeCheckTest.php
@@
-5,12
+5,14
@@
* @group Xml
* @covers XMLTypeCheck
*/
* @group Xml
* @covers XMLTypeCheck
*/
-class XmlTypeCheckTest extends PHPUnit_Framework_TestCase {
+class XmlTypeCheckTest extends PHPUnit\Framework\TestCase {
+
+ use MediaWikiCoversValidator;
+
const WELL_FORMED_XML = "<root><child /></root>";
const MAL_FORMED_XML = "<root><child /></error>";
const WELL_FORMED_XML = "<root><child /></root>";
const MAL_FORMED_XML = "<root><child /></error>";
- //
@codingStandardsIgnoreStart
Generic.Files.LineLength
+ //
phpcs:ignore
Generic.Files.LineLength
const XML_WITH_PIH = '<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/w/index.php"?><svg><child /></svg>';
const XML_WITH_PIH = '<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/w/index.php"?><svg><child /></svg>';
- // @codingStandardsIgnoreEnd
/**
* @covers XMLTypeCheck::newFromString
/**
* @covers XMLTypeCheck::newFromString