I'm working on test automation for a big project and I'm using Phpunit
and as a server I'm using Selenium WebDriver
.
In the source code I'm using asserts like :
$this->assertContains('Project Title', $this->webDriver->getTitle());
I'm wondering how can I add the if-else condition, that when it's false I can have a popup or to stop the test.