asking for some tech help: in the FOSHttpCache test listener, we start a PHP web server if needed. with phpunit 9, we checked the test suite for a specific group to know if we need to start it. i am moving to phpunit 10 but can't find how to detect the groups anymore: https://github.com/FriendsOfSymfony/FOSHttpCache/pull/565/files#r1538713152 #phpunit
Come to my talk "Testing with Doubles: Why, When, and How?" and learn the ins and outs of stubs and mocks. You will understand how #PHPUnit's test double functionality works and which parts of it you should stay clear of.
It's a tool to meta-program your tests. Declare a test function with input parameters, and use a data provider (a function that returns an array of positional parameters to fit your function) and you'll end up with as many test variations as you have items in the data provider's array.
I guess this is a step in the direction of property based testing, but with manual test data generation and it's associated flaws.
Looking at the #T3CON24 website, I do not see a Call for Papers. Is it already over? Will there be none? Am I blind? I would like to share what we have been up to in #PHPUnit land with the #TYPO3 community 😉
The first day of the #PHPUnit Code Sprint yesterday was great.
Among other things, @theseer, @localheinz, @sebastianheuer, @Schrank, Frank Sons, and I looked into a weird issue related to PHP's hrtime() function that is used for telemetry information in PHPUnit's event system.