File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments