Skip to content

Commit 75b7a6f

Browse files
committed
format code
1 parent f60875f commit 75b7a6f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/Common/Tests/XMLReaderTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,14 @@ public function testDomFromZip()
6363
public function testThrowsExceptionOnNonExistingArchive()
6464
{
6565
$pathResources = PHPOFFICE_COMMON_TESTS_BASE_DIR.DIRECTORY_SEPARATOR.'resources'.DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR;
66-
66+
6767
$reader = new XMLReader();
6868
$reader->getDomFromZip($pathResources. 'readers.zip', 'test.xml');
6969
}
7070

71+
/**
72+
* Test elements count
73+
*/
7174
public function testCountElements()
7275
{
7376
$reader = new XMLReader();
@@ -76,12 +79,15 @@ public function testCountElements()
7679
$this->assertEquals(2, $reader->countElements('/element/child'));
7780
}
7881

82+
/**
83+
* Test read non existing elements
84+
*/
7985
public function testReturnNullOnNonExistingNode()
8086
{
8187
$reader = new XMLReader();
8288
$this->assertEmpty($reader->getElements('/element/children'));
8389
$reader->getDomFromString('<element><child>AAA</child></element>');
84-
90+
8591
$this->assertNull($reader->getElement('/element/children'));
8692
$this->assertNull($reader->getValue('/element/children'));
8793
}

0 commit comments

Comments
 (0)