Merge "Fix 'Tags' padding to keep it farther from the edge and document the source...
[lhc/web/wiklou.git] / tests / phpunit / includes / XmlTest.php
index 4a280da..4556473 100644 (file)
@@ -55,7 +55,7 @@ class XmlTest extends MediaWikiTestCase {
         * @covers Xml::expandAttributes
         */
        public function testExpandAttributesException() {
-               $this->setExpectedException( 'MWException' );
+               $this->setExpectedException( MWException::class );
                Xml::expandAttributes( 'string' );
        }
 
@@ -97,8 +97,8 @@ class XmlTest extends MediaWikiTestCase {
         */
        public function testElementEscaping() {
                $this->assertEquals(
-                       '<element>hello &lt;there&gt; you &amp; you</element>',
-                       Xml::element( 'element', null, 'hello <there> you & you' ),
+                       '<element>"hello &lt;there&gt; your\'s &amp; you"</element>',
+                       Xml::element( 'element', null, '"hello <there> your\'s & you"' ),
                        'Element with no attributes and content that needs escaping'
                );
        }