Top "Phpunit" questions

PHPUnit is a programmer-oriented testing framework for PHP.

How do I write unit tests for a REST API built in Slim Framework?

I have an API built in Slim like this: $app->group('/'.$endpoint, function () use ($app, $endpoint) { $handler = …

rest phpunit slim
Keep getting 'You have requested a non-existent service "test.client"' in Symfony2 Beta3

I'm trying to setup a unit test but whenever I run "phpunit -c app" I get this error: Symfony\Component\…

php symfony phpunit
Is it possible to mock protected properties and methods

Is it possible to mock a protected property with PHP Mockery? I got a class with a method, I will …

php mocking phpunit protected mockery
PHPUnit print tests execution time

is there a way to print the execution time of each test with PHPUnit?

php phpunit execution-time
Best practices to test protected methods with PHPUnit (on abstract classes)

With PHPUnit and PHP >= 5.3 it is possible to test protected methods. The following page at stackoverflow outlined the best …

php methods phpunit abstract protected
Reaching 100% Code Coverage with PHPUnit

I've been in the process of creating a test suite for a project, and while I realize getting 100% coverage isn't …

php testing phpunit code-coverage
phpUnit - File/Iterator/Autoload.php failed opening

I am trying to get phpUnit running on a centos running plesk pannel. I have installed phpunit successfully. Package Version …

phpunit fatal-error
Mockery & PHPUnit: method does not exist on this mock object

Can you tell me where's the problem? I have a file GeneratorTest.php with the following tests: <?php namespace …

php unit-testing mocking phpunit mockery
How to unit test functions that use type hinting

Lets say I have a class that contains a function that uses type hinting like this: class Testable { function foo (…

unit-testing symfony mocking phpunit type-hinting
PHPUnit & Behat; complementing or alternatives?

I have been looking around SO and Google, but I couldn't really get a definitive answer. PHPUnit is a framework …

php phpunit bdd behat mink