File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -90,17 +90,17 @@ public function testHandleDT()
9090 $ this ->assertEquals ('dd ' , $ list ->lastChild ->tagName );
9191 }
9292
93- public function testHandleOption ()
93+ public function testHandleOptionGroupAndOption ()
9494 {
95- $ html = sprintf (self ::HTML_STUB , '<optgroup id="foo" label="foo" ><option value="foo" >bar</option></optgroup> ' );
95+ $ html = sprintf (self ::HTML_STUB , '<optgroup id="foo" label="foo" ><option value="foo">bar</option></optgroup> ' );
9696 $ doc = $ this ->parse ($ html );
9797
9898 $ list = $ doc ->getElementById ('foo ' );
9999
100100 $ this ->assertEquals (1 , $ list ->childNodes ->length );
101- foreach ( $ list -> childNodes as $ ele ) {
102- $ this -> assertEquals ( ' option ' , $ ele -> tagName );
103- }
101+
102+ $ option = $ list -> childNodes -> item ( 0 );
103+ $ this -> assertEquals ( ' option ' , $ option -> tagName );
104104 }
105105
106106 public function testTable ()
You can’t perform that action at this time.
0 commit comments