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
3
votes
0answers
760 views

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'...
3
votes
0answers
165 views

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'...
1
vote
0answers
24 views

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 ...