Top "Phpunit" questions

PHPUnit is a programmer-oriented testing framework for PHP.

Testing Abstract Classes

How do I test the concrete methods of an abstract class with PHPUnit? I'd expect that I'd have to create …

unit-testing phpunit abstract-class
PHPUnit - 'No tests executed' when using configuration file

The Problem To improve my quality of code, I've decided to try to learn how to test my code using …

php unit-testing phpunit
how to test specific test class using phpunit in laravel

I want to test specific testClass in my project since there are a lot of test class that's failure and …

php laravel phpunit laravel-5.2
phpunit - mockbuilder - set mock object internal property

Is it possible to create a mock object with disabled constructor and manually setted protected properties? Here is an idiotic …

php phpunit
PHPUnit. Error: No code coverage driver is available. (having xdebug installed)

There is an answer for similar question Laravel 5: PHPUnit and no code coverage driver available that works, but i have …

php phpunit wamp
How do I run all my PHPUnit tests?

I have script called Script.php and tests for it in Tests/Script.php, but when I run phpunit Tests …

php linux unit-testing ubuntu phpunit
PHPUnit: how do I mock multiple method calls with multiple arguments?

I am writing a unit test for a method using PHPUnit. The method I am testing makes a call to …

php mocking tdd phpunit
Setting up PHPUnit on OSX

Though I'm sure others have eventually managed to figure this out, I've been following the various documentation out there and …

installation osx-snow-leopard phpunit pear
How to skip tests in PHPunit?

I am using phpunit in connection with jenkins, and I want to skip certain tests by setting the configuration in …

php phpunit
PHPUnit: How do I create a function to be called once for all the tests in a class?

I have a PHPUnit test case class (consisting of some test functions). I would like to write a oneTimeSetUp() function …

php phpunit