Top "Phpunit" questions

PHPUnit is a programmer-oriented testing framework for PHP.

PHPUnit configuration (phpunit.xml) -- loading in a bootstrap?

Situation We're using PHPUnit in our project and are using a phpunit.xml to ensure things like backupGlobals is turned …

php configuration phpunit bootstrapping
Unit testing accessors (getters and setters)

Given the following methods: public function setFoo($foo) { $this->_foo = $foo; return $this; } public function getFoo() { return $this->_…

php unit-testing phpunit accessor getter-setter
can't install PHPUnit through pear

Possible Duplicate: Installing PHPUnit via PEAR the install instructions for phpunit are running this: pear channel-discover pear.phpunit.de pear …

php phpunit pear
Code Coverage with PHPUnit

I am running into an issue while attempting to determine code coverage on our site. I have PHPUnit generating a …

php phpunit code-coverage phpundercontrol
Mocking The PDO Object using PHPUnit

I'm having difficulty mocking the PDO object with PHPUnit. There doesn't seem to be much information on the web about …

php unit-testing pdo phpunit
Can't install PHPUnit via PEAR, requires PEAR Installer >= 1.9.2, can't upgrade PEAR from 1.9.0

I read the other PHPUnit installation questions but haven't had any success. What is going on with my PEAR install? $ …

php ubuntu phpunit pear
PHP Startup: Unable to load dynamic library, when running unit tests

when I try to run my unit tests, I get this error PHP Warning: PHP Startup: Unable to load dynamic …

php unit-testing xampp phpunit codeception
Symfony2 demo testing issues

I just installed the last version of phpunit and when I run the demo test with: bin/phpunit src/Acme/…

testing symfony phpunit symfony-2.2
PHPUnit and mock request from Guzzle

I have a class with the following function : public function get(string $uri) : stdClass { $this->client = new Client; $response = $…

php laravel mocking phpunit guzzle
testing multiple folders

I use PHPUnit 3.5.12, netbean 6.9, and git submodules in my project. So my folder architecture looks like that: lib/ lib/submodule1 …

php unit-testing phpunit project-organization test-suite