phpunit
phpunit copied to clipboard
The PHP Unit Testing framework.
I have a long exception message which has a lot of garbage in, but a few elements I want to check the presence of. So I figured I'd call `self::expectExceptionMessage()`...
wdyt about running the test-suite of a few popular repositories in phpunit CI, so we can more easily which impact a given pull request has on them? e.g. running the...
### Use case I am working on tests tool based on phpunit that work with generated data files per test method and dataset: - In "recording" mode, data is written...
PHPUnit 10.5 tightened up the data providers to flag as a error if a data provider returns an empty set. This causes problems in the case where the test the...
| Q | A | --------------------| --------------- | PHPUnit version | 12.5.2 | PHP version | 8.4.15 | Installation Method | Composer #### Summary Using a `#[DataProvider]` adds uncovered line...
This PR is a proof-of-concept for statically matching paths without traversing the filesystem during the test run. It replaces #6146 and uses the [webmozarts/glob](https://github.com/webmozarts/glob) package. Would fix #6114 --- The...
Introduce two new parameter matching rules for the MockObject framework: - UnorderedParameterSets: validates parameters across multiple invocations without requiring a specific order. - ConsecutiveParameterSets: validates parameters for consecutive method invocations...
| Q | A | --------------------| --------------- | PHPUnit version | 12.4.5 | PHP version | 8.5.0 | Installation Method | Composer `composer info | sort`: ``` myclabs/deep-copy 1.13.4 Create...
I am trying to collect deprecation notices while running the PHPUnit test suite in a Symfony application. In general, I‘d like to `ignoreIndirectDeprecations="true"`, since there are a lot of them...
`DebugClassLoader` from symfony/error-handler has the interesting feature that it can be set up as an autoloader and do on-the-fly source code analysis. It will trigger deprecation notices e. g. when...