Markus Staab
Markus Staab
PHPUnit atm reports > Generating code coverage report in PHPUnit XML format ... done [00:31.317] which means it only tells about the time it took to generate the report. I...
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 - [ ]...
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 | a62124f38 | PHP version | 8.3.23 | Installation Method | Composer / PHAR #### How to reproduce ``` ➜...
- when `#[RequiresPhp]` is lower then the phpstan analysis version, reports a test requirement as beeing always false - when `#[RequiresPhp]` contains a version which is not parse-able, reports a...
closes https://github.com/phpstan/phpstan-phpunit/issues/249
I think it would be helpful if we could error in tests which trigger a global side-effect like e.g. - `error_reporting(E_ALL)` when not restored to the old value within the...
```diff -$this->assertTrue(isset($anything["foo"]), "message"); +$this->assertArrayHasKey("foo", $anything, "message"); ``` similar to `AssertSameNullExpectedRule` and others could be auto-fixable. --- [inspired by rector](https://getrector.com/blog/make-phpunit-tests-perfect-in-15-diffs)
Starting with PHPUnit 10 a dataprovider is not allowed to provide a empty array. ```php
[`AssertEqualsIsDiscouragedRule` got autofixable recently](https://github.com/phpstan/phpstan-phpunit/commit/9a9b161baee88a5f5c58d816943cff354ff233dc). we should do the same with the remaining `AssertSame*` rules