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

| Q | A | --------------------| --------------- | PHPUnit version | 8.5.17 | PHP version | 7.2.14 | Installation Method | Composer #### Summary When I try to mock an...

type/bug
status/waiting-for-feedback
feature/test-doubles

Kudos for extracting `Stub` interface out of `MockObject`. Creating `Stub`s instead of `Mock`s reveals the intent of the test much better. I suggest going one step further and extract `Dummy`...

type/enhancement
feature/test-doubles

### Usage ```php // Before $this->interface ->expects($this->once()) ->method('method') ->with(new JsonMatches($jsonString)); // After $this->interface ->expects($this->once()) ->method('method') ->with($this->jsonMatches($jsonString)); ```

Currently the `file` of a test is sourced from reflection around the classname (e.g. https://github.com/sebastianbergmann/phpunit/blob/081c27a7dea2c4dd48d624c4961b2cea060cbced/src/Event/Value/Test/TestMethod.php#L200) It'd be good to be able to configure some sort of prefix, to be able...

type/enhancement
feature/events

| Q | A | --------------------| --------------- | PHPUnit version | 9.5.9 | PHP version | 7.4.23 | Installation Method | Composer #### Summary Our app has a mix of...

type/bug

This is a carry-over feature request from the now-archived sebastianbergmann/phpunit-mock-objects project. Original card: https://github.com/sebastianbergmann/phpunit-mock-objects/issues/318. The enhancement was provided, with only minor adjustments, from a PR by @Darhazer which was never...

type/enhancement
feature/test-doubles

Currently `ExceptionWrapper` stores the original exception forever and prevents it to be GCed. This is causing not only memory to grow/leak, but also if the original exception has a reference...

| Q | A | --------------------| --------------- | PHPUnit version | 9.5.10 | PHP version | 8.0.11 | Installation Method | Composer #### Summary Inside a Docker shell, I did...

type/bug
status/waiting-for-feedback

In the Drupal project we are using Mink to drive emulated web browsers and perform assertions against web content. Mink throws its own exception when an assertion fails, and by...

type/enhancement

| Q | A | --------------------| --------------- | PHPUnit version | 9.5.10 | PHP version | 8.1.2 | Installation Method | Composer #### Summary `PHPUnit\Util\ExcludeList` won’t initialize correctly when static...

type/bug