Top "Phpunit" questions

PHPUnit is a programmer-oriented testing framework for PHP.

phing and phpunit + bootstrap

How to run PHPUnit test suite with bootstrap file with phing? My app structure: application/ library/ tests/ application/ library/ bootstrap.…

unit-testing zend-framework testing phpunit phing
PHP and unit testing assertions with decimals

I have a method that returns a float like 1.234567890.I want to test that it really does so. However, it …

php unit-testing phpunit assert precision
Laravel 4 No tests found in TestCase

I'm having some problems with phpunit. When I execute a test, phpunit give me these warnings: 1) Warning No tests found …

phpunit ignore testcase
Testing Controllers in Symfony2 with Doctrine

I have created a very simple REST controller in Symony2 with Database insert/updates/deletes in the controller actions. Is …

php symfony phpunit symfony-2.1
PHPUnit's whitelist and blacklist seem to be ignored

I am setting up PHPUnit on a project which is structured the following way : - build - src - service # …

php phpunit whitelist
What does PHPUnit Strict mode do?

I am wondering about what "strict mode is in PHPUnit" ? eg: phpunit --strict or in phpunit.xml <phpunit strict="…

php unit-testing phpunit
PHPUnit , PEAR upgrading Errors

Note : I've read all questions about this problem PEAR is installed and configured on my system (Ubuntu 11.10 + Apache/2.2.20). Because <?…

php ubuntu phpunit pear
Set Expected Exception in Codeception Functional Cept

I want to do something like: $I->setExpectedException('Laracasts\Validation\FormValidationException'); In a functional cept. Any chance to do …

php laravel laravel-4 phpunit codeception
Zend Form: How to pass parameters into the constructor?

I'm trying to test my form. It will be constructing other objects, so I need a way to mock them. …

php zend-framework zend-form phpunit
Mockery - call_user_func_array() expects parameter 1 to be a valid callback

I have a class I need to mock: class MessagePublisher { /** * @param \PhpAmqpLib\Message\AMQPMessage $msg * @param string $exchange - if …

php mocking phpunit silex