Skip to content

Commit 8718623

Browse files
committed
Unrelated: fix file paths
1 parent 2a5c521 commit 8718623

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/XML/DOMDocumentFactoryTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ public function testFileThatDoesNotExistIsNotAccepted(): void
5151
public function testFileThatDoesNotContainXMLCannotBeLoaded(): void
5252
{
5353
$this->expectException(RuntimeException::class);
54-
DOMDocumentFactory::fromFile('resources/xml/domdocument_invalid_xml.xml');
54+
DOMDocumentFactory::fromFile('tests/resources/xml/domdocument_invalid_xml.xml');
5555
}
5656

5757

5858
public function testFileWithValidXMLCanBeLoaded(): void
5959
{
60-
$file = 'resources/xml/domdocument_valid_xml.xml';
60+
$file = 'tests/resources/xml/domdocument_valid_xml.xml';
6161
$document = DOMDocumentFactory::fromFile($file);
6262

6363
$this->assertXmlStringEqualsXmlFile($file, strval($document->saveXML()));
@@ -66,7 +66,7 @@ public function testFileWithValidXMLCanBeLoaded(): void
6666

6767
public function testFileThatContainsDocTypeIsNotAccepted(): void
6868
{
69-
$file = 'resources/xml/domdocument_doctype.xml';
69+
$file = 'tests/resources/xml/domdocument_doctype.xml';
7070
$this->expectException(RuntimeException::class);
7171
$this->expectExceptionMessage(
7272
'Dangerous XML detected, DOCTYPE nodes are not allowed in the XML body',
@@ -101,7 +101,7 @@ public function testStringThatContainsDocTypeIsNotAccepted2(): void
101101

102102
public function testEmptyFileIsNotValid(): void
103103
{
104-
$file = 'resources/xml/domdocument_empty.xml';
104+
$file = 'tests/resources/xml/domdocument_empty.xml';
105105
$this->expectException(RuntimeException::class);
106106
$this->expectExceptionMessage('does not have content');
107107
DOMDocumentFactory::fromFile($file);

0 commit comments

Comments
 (0)