Top "Phpunit" questions

PHPUnit is a programmer-oriented testing framework for PHP.

Fatal Error - Too many open files

I try to run PHPUnit Tests in my new machine and I get this error: PHP Fatal error: Uncaught exception …

php phpunit
Installing PEAR and PHPUnit with xampp

I am trying to get PHPUnit up and running the following are the steps I am currently following: ### Install new …

php installation phpunit pear
Install phpunit on windows

How to install phpunit? I read documentation https://github.com/sebastianbergmann/phpunit, but have an error: >pear upgrade PEAR …

php windows installation phpunit
How can i get phpunit to run tests from all files in a folder?

From what I've read, it seems like I should be able to set up a folder, e.g. tests/ , put …

php phpunit pear
How to exclude file from PHPUnit test suite in xml config?

I have following, very simple, XML config for PHPUnit: <phpunit bootstrap="/_tests/TestAutoload.php"> <testsuites> <…

unit-testing configuration phpunit
PHPUnit: expects method meaning

When I create a new mock I need to call the expects method. What exactly it does? What about its …

php unit-testing tdd mocking phpunit
How to install PCNTL extension in Windows?

I am running PHPUnit in Windows and trying to install PHPUnit via composer.json: "phpunit/php-invoker": "*" ...with this dependency, but …

windows phpunit pcntl
test if array contains value using PHPUnit

I created this array of objects: $ad_1 = new AdUnit(array('id' => '1', 'name' => 'Ad_1', 'description' => …

php phpunit
How to test if string contains another string in PHPUnit?

I can't seem to find an assertion in PHPUnit that simply tests if a string is contained somewhere in another …

php phpunit
Laravel testing, get JSON content

In Laravel's unit test, I can test a JSON API like that: $this->post('/user', ['name' => 'Sally']) …

laravel laravel-5 phpunit