Skip to content

Commit 5281c08

Browse files
committed
Added test for issue paquettg#164
1 parent 7b9ec6d commit 5281c08

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/DomTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,4 +389,12 @@ public function testWhitespaceInText()
389389
$dom->load('<pre> Hello world</pre>');
390390
$this->assertEquals('<pre> Hello world</pre>', (string) $dom);
391391
}
392+
393+
public function testGetComplexAttribute()
394+
{
395+
$dom = new Dom;
396+
$dom->load('<a href="?search=Fort+William&session_type=face&distance=100&uqs=119846&page=4" class="pagination-next">Next <span class="chevron">&gt;</span></a>');
397+
$href = $dom->find('a', 0)->href;
398+
$this->assertEquals('?search=Fort+William&session_type=face&distance=100&uqs=119846&page=4', $href);
399+
}
392400
}

0 commit comments

Comments
 (0)