Questions tagged [phpunit]

PHPUnit is a free framework for testing PHP-scripts.

3 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers

How to add an assert to an if ..else condition using Phpunit and selenium webdriver

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'...
user avatar
3 votes
0 answers

How to configure Phpunit.xml to use multiple browsers in Phpunit test with selenium webdriver

I'm working on automation test for a big project and I'm using **Phpunit** for functional test and as a server **selenium webdriver**. I want to execute many tests using **different browsers** , I don'...
user avatar
1 vote
0 answers

Adding exception annotation in Phpunit

I'm using assertContains() method and I want to add an exception because during the test, if this return false it's stopped and not running the second test. I followed the PhpUnit documentation but I ...
user avatar