File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
dev/tests/unit/testsuite/Magento/Framework/Xml Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,6 @@ class ParserTest extends \PHPUnit_Framework_TestCase
11
11
/** @var \Magento\Framework\Xml\Parser */
12
12
protected $ parser ;
13
13
14
- /**
15
- * A sample invalid XML
16
- *
17
- * @var string
18
- */
19
- private static $ sampleXml = '<?xml version="1.0"?><config></onfig> ' ;
20
-
21
14
protected function setUp ()
22
15
{
23
16
$ this ->parser = new \Magento \Framework \Xml \Parser ();
@@ -43,9 +36,10 @@ public function testGetXml()
43
36
* @expectedException \Magento\Framework\Exception
44
37
* @expectedExceptionMessage DOMDocument::loadXML(): Opening and ending tag mismatch
45
38
*/
46
- public function testInvalidXml ()
39
+ public function testLoadXmlInvalid ()
47
40
{
41
+ $ sampleInvalidXml = '<?xml version="1.0"?><config></onfig> ' ;
48
42
$ this ->parser ->initErrorHandler ();
49
- $ this ->parser ->loadXML (self :: $ sampleXml );
43
+ $ this ->parser ->loadXML ($ sampleInvalidXml );
50
44
}
51
45
}
You can’t perform that action at this time.
0 commit comments