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 | 11.2.0 ... dev-main e0aea4c | PHP version | 8.4.6 | Installation Method | Composer #### Summary Up to PHPUnit...

type/backward-compatibility
feature/test-doubles
version/11
version/12

PhpUnit Version: 12.4.1 I got following class and want to mock it `public get property hook` ``` class Example { public function __construct( private(set) string $property { get => $this->property;...

feature/test-doubles
version/11
version/12

### Context I use `DataProvider` and `TestDox`: ``` #[DataProvider('userPaginationDataProvider')] #[TestDox('Test user $_dataName with query $query and there are $expectedUsersCount users and the title must contain $expectedTitleStart')] ``` Here is the...

type/enhancement
feature/testdox

running `php phpunit tests/end-to-end/phar/tests/standard/GreeterTest.php -c tests/end-to-end/phar/phpunit.xml` with a fork `Time: 00:00.005, Memory: 16.00 MB` with a subprocess `Time: 00:00.031, Memory: 16.00 MB` Todo - [x] implement PcntlForkJobRunner - [ ]...

Resolves #6088 @sebastianbergmann assuming you are ok with the concept, I would love your input on the implementation. Notably a large portion of the constraint work is take from the...

when working in PHPUnit itself it is helpful to run previously errors first to shorten the feedback loop. I also tried `random` order, but it seems to trigger a warning...

| Q | A | --------------------| --------------- | PHPUnit version | 12.3.15 | PHP version | 8.3.22 | Installation Method | PHAR #### Summary A failing assertion within a `::willReturnCallback(function...

type/bug
feature/test-doubles

1 second (the minimum sensible value) is a large test for me. I really don't want thousands of small tests taking 0.999 seconds each! Can the length for small, medium,...

type/enhancement
feature/test-runner

| Q | A | --------------------| --------------- | PHPUnit version | 11.5.36 | PHP version | 8.3.6 | Installation Method | Composer v2 #### Summary Performance and side effect issues...

type/bug
feature/configuration/xml
feature/configuration/cli
feature/extensions

Issues such as #6340 and #6345 show that we need to be better at warning when conflicting CLI options are used.

type/enhancement
feature/configuration/cli