diff --git a/src/Behat/MinkExtension/Context/MinkDictionary.php b/src/Behat/MinkExtension/Context/MinkDictionary.php index c8004d4..abe096f 100644 --- a/src/Behat/MinkExtension/Context/MinkDictionary.php +++ b/src/Behat/MinkExtension/Context/MinkDictionary.php @@ -320,7 +320,7 @@ trait MinkDictionary */ public function assertPageMatchesText($pattern) { - $this->assertSession()->pageTextMatches($this->fixStepArgument($text)); + $this->assertSession()->pageTextMatches($this->fixStepArgument($pattern)); } /** @@ -330,7 +330,7 @@ trait MinkDictionary */ public function assertPageNotMatchesText($pattern) { - $this->assertSession()->pageTextNotMatches($this->fixStepArgument($text)); + $this->assertSession()->pageTextNotMatches($this->fixStepArgument($pattern)); } /**