Right now Mink has nice has* methods (e.g. hasContent, hasTag, etc.), that returns true or false. However error messages when something fails, produced by $this->assertTrue method are totally useless:
Failed asserting that false is true.
Create a set of constrains, that would make life easier, when dealing with Mink, e.g. $this->assertPageHasContent($page, 'content here') would produce following error message:
Failed asserting, that page <page_class_name> (url: <url_to_a_page>) has "<content here>" on it.
Right now
Mink
has nicehas*
methods (e.g.hasContent
,hasTag
, etc.), that returns true or false. However error messages when something fails, produced by$this->assertTrue
method are totally useless:Create a set of constrains, that would make life easier, when dealing with Mink, e.g.
$this->assertPageHasContent($page, 'content here')
would produce following error message:Probably we can just copy paste PHPUnit Selenium ones from here https://github.com/sebastianbergmann/phpunit-selenium/blob/master/PHPUnit/Extensions/SeleniumTestCase.php: