The last #PHPUnit code sprint was four (!) years ago:
https://phpunit.de/code-sprints/september-2019.html
Teaser: The next one will be in March in Hamburg. Details: soon.
#PHPUnit 10.3.3 has been released: https://github.com/sebastianbergmann/phpunit/blob/10.3/ChangeLog-10.3.md#1033---2023-09-05
was debugging a flaky #phpunit test with executionOrder="defects" configured. it took me quite a while to figure out that the code under test was dependent on a constant and that constant was set in only one test case (which _sometimes_ ran before the others which would break them)..
replaced the constant with something else that can be properly mocked and all is good. phew.
Wer testet eigentlich meine #Tests?
Die Antwort auf diese Frage gibt es ab 27. Oktober in meiner #Online #Schulung zum Thema #MutationTesting für #PHP mit #PHPUnit und #Infection.
📢 Details: https://thephp.cc/schulungen/mutation-testing-mit-infection?ref=mastodon
📅 Termine: https://thephp.cc/termine?ref=mastodon
#tests #online #schulung #mutationtesting #php #phpunit #infection
Is this an acceptable format to display testdox error messages in #PHPUnit 10.x using `--testdox`?
does anyone have any suggestions for alternative format?
Related: https://github.com/sebastianbergmann/phpunit/issues/5488
#PHPUnit `expect*()` replacement.
https://gist.github.com/ghostwriter/7a45ffbba8ac2746175a4e82a5d22d79
for #PHPUnit 10+
we need a custom printer that skips/ignores `PhpunitDeprecationTriggeredEvent`
then run this command to disable default printer.
// vendor/bin/phpunit --no-progress
Suppress #PHPUnit deprecations
// phpunit.xml:
<phpunit bootstrap="tests/Unit/bootstrap.php"
// tests/Unit/bootstrap.php:
<?php declare(strict_types=1);
error_reporting(E_ALL & ~E_USER_DEPRECATED & ~E_DEPRECATED );
require 'vendor/autoload.php';
Is there a way to disable or hide the #PHPUnit deprecations? I have 265 of them for data providers that aren’t static, and I can’t easily switch to static data providers, since many of the data providers call instance methods (i.e., `$this`). So, it’s going to take me a long time to upgrade my tests so that I can upgrade to PHPUnit 10.
#PHPUnit 9.6.11 has been released: https://github.com/sebastianbergmann/phpunit/blob/9.6.11/ChangeLog-9.6.md#9611---2023-08-19
You want to learn how to get started with automated testing for your #PHP software?
The next instance of my "Test Automation with #PHPUnit" training starts at the end of September.
Details: https://thephp.cc/training/test-automation-with-phpunit
Dates: https://thephp.cc/dates
Interested? Send an email to team@thephp.cc!
#PHPUnit 10.3.2 has been released: https://github.com/sebastianbergmann/phpunit/blob/10.3.2/ChangeLog-10.3.md#1032---2023-08-15
Auf der #Contao Konferenz in Kiel werde ich im Oktober zeigen, was sich bei #PHP @php@fosstodon.org und #PHPUnit @phpunit in letzter Zeit getan hat:
https://thephp.cc/termine/was-ist-neu-in-php-und-phpunit-contao-konferenz
#PHPUnit 10.3.1 has been released: https://github.com/sebastianbergmann/phpunit/blob/10.3.1/ChangeLog-10.3.md#1031---2023-08-04
#PHPUnit 10.3.0 has been released: https://github.com/sebastianbergmann/phpunit/blob/10.3.0/ChangeLog-10.3.md#1030---2023-08-04