Top "Phpunit" questions

PHPUnit is a programmer-oriented testing framework for PHP.

Autoloading classes in PHPUnit using Composer and autoload.php

I have just installed PHPUnit version 3.7.19 by Sebastian Bergmann via Composer and have written a class I would like to …

php namespaces phpunit autoload composer-php
Difference between assertEquals and assertSame in PHPUnit?

PHPUnit contains an assertEquals() method, but it also has an assertSame() one. At first glance it looks like they do …

phpunit
How to use phpunit installed from composer?

I want to start unit testing my symfony 2 application with phpunit. I installed phpunit using composer (per-project dependancy). http://www.…

symfony phpunit composer-php
phpunit require_once() error

I recently installed phpunit on my server via the pear installer. When I go to run a test I get …

php installation phpunit filepath php-ini
PHPUnit: assertInstanceOf() not working

I need to check if a variable is an object of the User type. User is my class $user my …

php phpunit assert assertions
Laravel 5: PHPUnit and no code coverage driver available

I would like to use PHPUnit to create code coverage reports. I have tried a lot of installation setups found …

phpunit code-coverage laravel-5.2
phpunit avoid constructor arguments for mock

What is the way to avoid phpunit having to call the constructor for a mock object? Otherwise I would need …

php unit-testing phpunit
Getting PHPUnit Working - Include Path not set correctly?

I'm trying to get PHPUnit working on my development environment but I've hit a bit of a roadblock when it …

php unit-testing phpunit pear
How to run a specific phpunit xml testsuite?

how can i choose a specific testsuite to be executed? $ phpunit --configuration config.xml config.xml: <testsuites> <…

xml phpunit
Installing PHPUnit via PEAR

I have problems installing PHPUnit 3.4.6 via PEAR 1.9.0. After I discover channel pear.phpunit.de and try to use one of …

php phpunit pear