Skip to content

Commit d604a66

Browse files
committed
test fix
1 parent fc2789f commit d604a66

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/Element/DocumentElementTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ public function testFind()
7070
->expects($this->exactly(3))
7171
->method('selectorToXpath')
7272
->will($this->returnValueMap(array(
73-
array('xpath', $xpath, $xpath),
74-
array('xpath', $xpath, $xpath),
75-
array('css', $css, $xpath),
73+
array('xpath', $xpath, '(' . $xpath . ')[1]'),
74+
array('xpath', $xpath, '(' . $xpath . ')[1]'),
75+
array('css', $css, '(' . $xpath . ')[1]'),
7676
)));
7777

7878
$this->assertEquals(2, $this->document->find('xpath', $xpath));

0 commit comments

Comments
 (0)