phpunit
phpunit copied to clipboard
The PHP Unit Testing framework.
Take this test for example: ```php
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...
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`...
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...
| Q | A | --------------------| --------------- | PHPUnit version | 9.5.10 | PHP version | 7.4.19 | Installation Method | Composer #### Summary When a method on proxy calls...
| Q | A | --------------------| --------------- | PHPUnit version | master | PHP version | 7.2 | Installation Method | not installed #### Summary I was searching for working...
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...
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()`...
| Q | A | --------------------| --------------- | PHPUnit version | 9.5.10 | PHP version | 8.0.11 (docker alpine based) | Installation Method | getcomposer.org/installer #### Summary With PhpUnit forced...