phpunit
phpunit copied to clipboard
The PHP Unit Testing framework.
| Q | A | --------------------| --------------- | PHPUnit version | 11.3.5 | PHP version | 8.3.8 | Installation Method | Composer #### Summary The diff output when assertEqualsCanonicalizing() fails...
Deprecation are sometimes hard to track. Figuring the exact stack trace for one particular deprecation is really useful to understand how it comes up and fix it. It would be...
| Q | A | --------------------| --------------- | PHPUnit version | 8.1.6, but presumably since 8.1.4 | PHP version | 7.2 | Installation Method | PHAR (Filed because of https://github.com/sebastianbergmann/phpunit/issues/3587#issuecomment-499158723)...
Using `assertEqualsCanonicalizing` effectively uses `sort()` to canonicalize arrays. I fail to see where this might become helpful in a unit test scenario (unidentifiable values whose order doesn't matter)? On the...
It would be quite handy to use constraints within array values when using `isEqual`, like so: ```php $mock = $this->createMock(SomeClass::class); $mock ->method('doSomething') ->with([ 'key' => $this->isType('string'), 'value' => 'some value',...
Sometimes on large test suites I get unexpected failures and after seeing a few I am thinking "ok what's up?" and don't really feel like waiting for the whole test...
Implement a new CLI option `--filter-using-test-id-file ` to select the tests to be run based on a list of test identifiers that is read from a plain text file. This...
⚠️ this is experimental; do not ~count~ depend on this making it to the PHPUnit core ⚠️ Experimenting with the [lazy loading dataproviders](https://github.com/epdenouden/phpunit/tree/dataproviderzzz) is the perfect time to try and...
| Q | A | --------------------| --------------- | PHPUnit version | 7.5.9 | PHP version | 7.3.4 | Installation Method | PHAR It would be nice if the failed expection...
| Q | A | --------------------| --------------- | PHPUnit version | 12.2.2 | PHP version | 8.3.20 | Installation Method | Composer #### Summary PHPUnit warnings are always failing the...