Merge pull request #8 from romulodl/master

Fix methods "assertPageMatchesText" and "assertPageNotMatchesText"
This commit is contained in:
Christophe Coevoet
2012-06-09 00:39:09 -07:00

View File

@@ -243,7 +243,7 @@ class MinkContext extends RawMinkContext implements TranslatedContextInterface
*/
public function assertPageMatchesText($pattern)
{
$this->assertSession()->pageTextMatches($this->fixStepArgument($text));
$this->assertSession()->pageTextMatches($this->fixStepArgument($pattern));
}
/**
@@ -253,7 +253,7 @@ class MinkContext extends RawMinkContext implements TranslatedContextInterface
*/
public function assertPageNotMatchesText($pattern)
{
$this->assertSession()->pageTextNotMatches($this->fixStepArgument($text));
$this->assertSession()->pageTextNotMatches($this->fixStepArgument($pattern));
}
/**