phpunit icon indicating copy to clipboard operation
phpunit copied to clipboard

The PHP Unit Testing framework.

Results 382 phpunit issues
Sort by recently updated
recently updated
newest added

Take this test for example: ```php

type/enhancement

Currently, if a values map for a method mocked with `willReturnMap()` does not have the parameters received, it will simply return null. When writing tests for complex code, it's not...

type/enhancement
feature/test-doubles

Hello, `Throwable` interface was introduce in PHP 7.0 as base interface for any object that can be thrown. Currently phpunit has only `expectException*` methods but they can work with `Throwable`...

type/enhancement

PHPUnit has the feature to be strict about covers annotation. Test subjects may use multiple very commonly used methods. which would force you to write every single commonly used method...

type/enhancement
feature/metadata

| Q | A | --------------------| --------------- | PHPUnit version | 9.5.10 | PHP version | 7.4.19 | Installation Method | Composer #### Summary When a method on proxy calls...

type/bug
feature/test-doubles

| Q | A | --------------------| --------------- | PHPUnit version | master | PHP version | 7.2 | Installation Method | not installed #### Summary I was searching for working...

type/bug

Hi, we are using PHPUnit to mock out the [Predis](https://github.com/predis/predis/blob/main/src/ClientInterface.php) client. As the client is a fairly thin layer above the redis protocol the client the implementation uses __call() quite...

Apologies for not filling out the template, but it is not very relevant to the issue. I read the documentation [here](https://phpunit.readthedocs.io/en/9.3/textui.html) (applies to 9.3, 9.5 and probably earlier) regarding the...

type/bug

Hey. We stumbled upon a scenario in our test suites and think it might be a useful feature for phpunit. When a test registers an own error handler using `set_error_handler()`...

type/enhancement

| Q | A | --------------------| --------------- | PHPUnit version | 9.5.10 | PHP version | 8.0.11 (docker alpine based) | Installation Method | getcomposer.org/installer #### Summary With PhpUnit forced...

type/bug