Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 2165441

Browse files
committed
Fixed WebDriverNot constrait tests
selector can only be string with PHPUnit 8
1 parent e963542 commit 2165441

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Constraint/WebDriverNot.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ protected function matches($nodes) : bool
1313

1414
protected function fail($nodes, $selector, ComparisonFailure $comparisonFailure = null) : void
1515
{
16-
$selectorString = Locator::humanReadableString($selector);
1716
if (!$this->string) {
1817
throw new \PHPUnit\Framework\ExpectationFailedException(
19-
"Element $selectorString was found",
18+
"Element $selector was found",
2019
$comparisonFailure
2120
);
2221
}
2322

24-
$output = "There was $selectorString element";
23+
$output = "There was $selector element";
2524
$output .= $this->uriMessage("on page");
2625
$output .= $this->nodesList($nodes, $this->string);
2726
$output .= "\ncontaining '{$this->string}'";

0 commit comments

Comments
 (0)