We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c1868a commit da9bd26Copy full SHA for da9bd26
tests/unit/Codeception/Module/PhpBrowserTest.php
@@ -7,6 +7,7 @@
7
8
use GuzzleHttp\Handler\MockHandler;
9
use GuzzleHttp\Psr7\Response;
10
+use PHPUnit\Framework\AssertionFailedError;
11
12
class PhpBrowserTest extends TestsForBrowsers
13
{
@@ -617,11 +618,9 @@ public function testClickSelectsClickableElementFromMatchesUsingCssLocator()
617
618
$this->module->seeCurrentUrlEquals('/info');
619
}
620
- /**
621
- * @expectedException PHPUnit\Framework\AssertionFailedError
622
- */
623
public function testClickingOnButtonOutsideFormDoesNotCauseFatalError()
624
+ $this->expectException(AssertionFailedError::class);
625
$this->module->amOnPage('/form/button-not-in-form');
626
$this->module->click('The Button');
627
0 commit comments