#PHPUNIT

Schrank :shopware: 🐘 (er/ihm)Schrank@phpc.social
2025-06-30

@dilawar I only know #phpunit and what I learned is: don’t Test private methods

But I’m sure there are other frameworks which allow this 🤔🙃

Pattern? Just have two classes in a file and make sure phpunit loads all files to find all tests, or what do you mean?

If phpunit loads all the files, no autoload is needed, so less boilerplate 😅

Sebastian Bergmann :phpunit:sebastian@phpc.social
2025-06-26

Geht gleich los! #Livestream #PHPUnit

Photo of my desk with keyboard, two screens, a camera, and a microphone
Sebastian Bergmann :phpunit:sebastian@phpc.social
2025-06-26

Ich spreche heute um 14:00 Uhr in einem #Livestream über neue #PHPUnit-Features:

youtube.com/live/QnbhlgA5w8g?s

Sebastian Bergmann :phpunit:sebastian@phpc.social
2025-06-26

I'm still surprised by how often I meet people who are surprised to learn that I offer consulting, coaching and training services focused on #PHPUnit and other #PHP-related topics.

I’m passionate about helping PHP development teams overcome the challenges they face, whether that's improving code quality, mastering PHPUnit or modernising their software.

If you struggle with PHP, I can help you find the right solutions. Let's work together to build better software!

phpunit.expert/?ref=mastodon

2025-06-24

Ever ran your #phpunit test-suite to create a code-coverage report and after waiting minutes, a warning showed up, that you forgot to configure/load the coverage driver (xdebug or pcov)?

Fix it for you in the upcoming PHPUnit 12.x release - it will immediately stop.

2025-06-17

Lernt mit mir im Oktober in Berlin Test-driven-Development von TYPO3-Extensions!

Vom 15.-16.10.2025 gebe ich in Berlin im Vorprogramm des TYPO3Camps Berlin #t3cb den #Workshop "TYPO3-Extensions testgetrieben mit #PHPUnit entwickeln". Dort werden wir zusammen eine TYPO3-Extension testgetrieben von Grund auf entwickeln.

Meldet euch schnell an - die Anmeldefrist ist schon am 12.07.2025, und die Plätze sind knapp! Es wird ein Fest!

t3cb.de/specials/

~RiWe :fediverse:riwe@det.social
2025-06-17

I have this wired output when I run #PHPUNIT and #XDEBUG :

$ vendor/bin/phpunit --coverage-html coverage --coverage-text
PHPUnit 9.6.19 by Sebastian Bergmann and contributors.
Runtime: PHP 8.2.28 with Xdebug 3.4.4
Configuration: /.../phpunit.xml
double free or corruption (fasttop)
/bin/bash: line 158: 196 Aborted (core dumped) vendor/bin/phpunit --coverage-html coverage --coverage-text

Has someone seen this before? How to solve it? #PHP

2025-06-13

Yesterday I hunted down a performance regression in #phpunit 11.x and 12.x when big objects (e.g. ReflectionClass) are used in dataproviders, in comparison to phpunit 10.x

Proposed a fix, short discussion with Sebastian Bergmann, and here we go: Fix released today.

love it.

Reuben Walker aka mobileatommobileatom@flipboard.com
2025-06-08
Sebastian Bergmann :phpunit:sebastian@phpc.social
2025-06-08

30 years of #PHP, 25 years of #PHPUnit: In my new article, I share how we have changed the web together.

thephp.cc/articles/30-years-ph

#30YearsOfPHP

2025-06-06

Wenn einem der Lieblingsentwickler des Lieblingstestframeworks und defacto Standard in der Lieblingsprogrammiersprache den Lieblingstag der Woche verschönert.

Breaking Changes in Patch Releases, so wie ich es gerne habe.

https://github.com/sebastianbergmann/phpunit/commit/e6d3093e93282fac3c622a5981dcd8a69ce17bdd

#php #phpunit #fuuu

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst