#PHPUnit

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

Here is the material I used for my "So you think you know #PHPUnit?" at #IntPHPCon today:

thephp.cc/presentations/so-you

Presentation cover slide with photo of Berlin
Sebastian Bergmann :phpunit:sebastian@phpc.social
2025-05-24

Dear #PHP / #PHPUnit Community,

I am aware that phpunit.de/ and phar.phpunit.de/ (as well other domains of mine) are currently unreachable due to expired SSL certificates.

Service will be restored as soon as possible, but it's the weekend, so it may take until Monday.

Sorry!

ignace nyamagana buteranyamsprod@phpc.social
2025-05-22

OK PHP folks I am trying to add PHPUnit specific assertion to use with leage/csv

see github.com/thephpleague/csv/is for more information #csv #assertions #phpunit

2025-05-11

@zapiz Xdebug is amazing, as others have suggested.

I also ensure full coverage with unit tests, using PHPUnit.

#PHP #Xdebug #PHPUnit

2025-05-11

Anyone who uses Paratest: do you have to do anything special to get it to run your test bootstrap per process? I have vlucas/phpdotenv loading env vars in my bootstrap, but when running with Paratest, none of the env vars are present.

I’ve tried using --bootstrap, and that doesn’t help.

I’m using $_ENV to access the env vars, in case that matters.

#PHP #PHPUnit #Paratest

Larry GarfieldCrell@phpc.social
2025-05-09

In @phpunit, is it possible to write custom attributes for test methods that trigger some hook before/after a test? Like, I want to say "before this test runs, pass this attribute's values to this hook that runs in the context of the test class so I can do setup specific to this test." (Fixtures in my case.)

#phpunit #php

Sebastian Bergmann :phpunit:sebastian@phpc.social
2025-05-07

Es war mir eine Ehre und eine Freude, über #PHP, #PHPUnit, Community und #OpenSource zu podcasten:

workingdraft.de/660/

Cees-Jan Kiewiet :rp: :wm:wyri@haxim.us
2025-04-30

Ok, so I'm confused about how @infection_php handles these specific mutators that are covered by tests:

#PHPUnit #InfectionPHP #PHP

2025-04-27

Lesson learned from #phpunit codesprint:

When generating code coverage data in a immutable CI environment (e.g. #github #actions) with phpunit, make sure to restore the phpunit temp-folder, as otherwise it will be waaayy slower.

2025-04-27

In collaboration with @localheinz I've build a small #github #actions utility workflow.

It describes how to segment a projects phpunit overall test-suite and distribute the load over parallel running github actions jobs

github.com/staabm/phpunit-gith

#phpunit #codesprint

2025-04-25

While sitting togehter with the #phpunit codesprint team in berlin, I am fixing #phpstan bugs to improve the phpunit use-cases of phpstan

github.com/sebastianbergmann/p

Client Info

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