mastouille.fr est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Mastouille est une instance Mastodon durable, ouverte, et hébergée en France.

Administré par :

Statistiques du serveur :

660
comptes actifs

#phpunit

1 message1 participant0 message aujourd’hui
Sebastian Bergmann :phpunit:<p>Here is the material I used for my "So you think you know <a href="https://phpc.social/tags/PHPUnit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPUnit</span></a>?" at <a href="https://phpc.social/tags/IntPHPCon" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>IntPHPCon</span></a> today:</p><p><a href="https://thephp.cc/presentations/so-you-think-you-know-phpunit?ref=mastodon" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">thephp.cc/presentations/so-you</span><span class="invisible">-think-you-know-phpunit?ref=mastodon</span></a></p>
Ben Ramsey<p><span class="h-card" translate="no"><a href="https://mastodon.social/@zapiz" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>zapiz</span></a></span> Xdebug is amazing, as others have suggested.</p><p>I also ensure full coverage with unit tests, using PHPUnit.</p><p><a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> <a href="https://phpc.social/tags/Xdebug" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Xdebug</span></a> <a href="https://phpc.social/tags/PHPUnit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPUnit</span></a></p>
Ben Ramsey<p>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.</p><p>I’ve tried using --bootstrap, and that doesn’t help.</p><p>I’m using $_ENV to access the env vars, in case that matters.</p><p><a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> <a href="https://phpc.social/tags/PHPUnit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPUnit</span></a> <a href="https://phpc.social/tags/Paratest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Paratest</span></a></p>
markus staab<p>In collaboration with <span class="h-card" translate="no"><a href="https://phpc.social/@localheinz" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>localheinz</span></a></span> I've build a small <a href="https://phpc.social/tags/github" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>github</span></a> <a href="https://phpc.social/tags/actions" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>actions</span></a> utility workflow.</p><p>It describes how to segment a projects phpunit overall test-suite and distribute the load over parallel running github actions jobs</p><p><a href="https://github.com/staabm/phpunit-github-action-matrix" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/staabm/phpunit-gith</span><span class="invisible">ub-action-matrix</span></a></p><p><a href="https://phpc.social/tags/phpunit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>phpunit</span></a> <a href="https://phpc.social/tags/codesprint" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codesprint</span></a></p>
Alerta! Alerta!<p>So, <a href="https://phpc.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> and <a href="https://phpc.social/tags/phpunit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>phpunit</span></a> folks: How do we mock readonly classes?</p>
PHPUnit<p>You can now sponsor <span class="h-card" translate="no"><a href="https://phpc.social/@sebastian" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>sebastian</span></a></span>'s work on <a href="https://phpc.social/tags/PHPUnit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPUnit</span></a> also using <span class="h-card" translate="no"><a href="https://mastodon.xyz/@Liberapay" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>Liberapay</span></a></span>: </p><p><a href="https://liberapay.com/sebastianbergmann" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">liberapay.com/sebastianbergman</span><span class="invisible">n</span></a></p><p>This might be more convenient for EU citizens than other platform.</p>
Symfony Station 🇺🇦🇨🇦🇬🇱<p>Mocking API Requests in <a href="https://drupal.community/tags/PHPunit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPunit</span></a> Tests.<br><a href="https://dev.to/jszutkowski/mocking-api-requests-in-unit-tests-4j6o" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">dev.to/jszutkowski/mocking-api</span><span class="invisible">-requests-in-unit-tests-4j6o</span></a></p>
Alan Langford 🇨🇦🧤🧊摏<p>A couple of years ago I wrote a <a href="https://mindly.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> script that mucks around with some system files. Because I didn't want to break my system while testing the code, I wrote some relatively tedious tests in <a href="https://mindly.social/tags/phpunit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>phpunit</span></a> with mock objects, validating the parameters that were passed down to the filesystem.</p><p>It was a real pain in the butt, but I got the thing debugged without making a mess of my working environment.</p><p>Today I decided to add a new feature, and there's no way to express how much time having all that stuff set up saved. I copied a similar test, adapted it to the new feature, got it to pass tests, and deployed it without issue.</p><p>Coding a good test suite pays back over, and over, and over again.</p>
Helmut Strasser<p>🚀 Exciting News, PHPUnit and TYPO3 enthusiasts! 🚀</p><p>Are you ready to take your TYPO3 development skills to the next level? Join me at TYPO3Camp 2025 in Vienna for an in-depth PHPUnit workshop! 🛠️</p><p>📅 Date: Friday, 9 May 2025<br>📍 Location: TYPO3Camp, Vienna<br>🔗 <a href="https://www.typo3camp.at/workshops/phpunit-in-typo3/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">typo3camp.at/workshops/phpunit</span><span class="invisible">-in-typo3/</span></a></p><p>See you there! Let's code smarter, not harder. 💻✨</p><p><a href="https://mstdn.social/tags/TYPO3" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TYPO3</span></a> <a href="https://mstdn.social/tags/PHPUnit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPUnit</span></a> <a href="https://mstdn.social/tags/t3cvie2025" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>t3cvie2025</span></a> <a href="https://mstdn.social/tags/WebDevelopment" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDevelopment</span></a> <a href="https://mstdn.social/tags/CodingWorkshop" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CodingWorkshop</span></a></p>
Symfony Station 🇺🇦🇨🇦🇬🇱<p>Converting a PHPUnit TestListener to an Event Subscriber. <a href="https://drupal.community/tags/PHPunit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPunit</span></a><br><a href="https://akrabat.com/converting-a-phpunit-testlistener-to-an-event-subscriber/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">akrabat.com/converting-a-phpun</span><span class="invisible">it-testlistener-to-an-event-subscriber/</span></a></p>
Sebastian Bergmann :phpunit:<p>Here is a recording of my "So you think you know <a href="https://phpc.social/tags/PHPUnit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPUnit</span></a>?" presentation at <a href="https://phpc.social/tags/LaraconEU" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LaraconEU</span></a>: <a href="https://youtu.be/CpkHHxE5g7c" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">youtu.be/CpkHHxE5g7c</span><span class="invisible"></span></a></p>
patchlevel<p>We released 1.1.0 of event-sourcing-phpunit! See here for the changelog: <a href="https://github.com/patchlevel/event-sourcing-phpunit/releases/tag/1.1.0" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/patchlevel/event-so</span><span class="invisible">urcing-phpunit/releases/tag/1.1.0</span></a><br><a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> <a href="https://phpc.social/tags/DDD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DDD</span></a> <a href="https://phpc.social/tags/EventSourcing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>EventSourcing</span></a> <a href="https://phpc.social/tags/PHPUnit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPUnit</span></a> <a href="https://phpc.social/tags/Testing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Testing</span></a></p>
George Steel<p>First project upgraded to <a href="https://phpc.social/tags/phpunit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>phpunit</span></a> 12 without any code changes… Credit to <span class="h-card" translate="no"><a href="https://phpc.social/@sebastian" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>sebastian</span></a></span> for such meticulous planning and detail with deprecations and what not! <a href="https://phpc.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a></p>
Sebastian Bergmann :phpunit:<p>Tomorrow I will share unique insights on how to get the most out of <a href="https://phpc.social/tags/PHPUnit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPUnit</span></a> in 2025:</p><p><a href="https://phpunit.de/test-smarter-not-harder.html?ref=mastodon" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">phpunit.de/test-smarter-not-ha</span><span class="invisible">rder.html?ref=mastodon</span></a></p>
Sebastian Bergmann :phpunit:<p>Here is the material that I used for my "So you think you know <a href="https://phpc.social/tags/PHPUnit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPUnit</span></a>?" presentation at <a href="https://phpc.social/tags/LaraconEU" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LaraconEU</span></a>:</p><p><a href="https://thephp.cc/presentations/so-you-think-you-know-phpunit?ref=mastodon" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">thephp.cc/presentations/so-you</span><span class="invisible">-think-you-know-phpunit?ref=mastodon</span></a></p>
Sebastian Bergmann :phpunit:<p>This will be a crazy week: today and tomorrow I am at <a href="https://phpc.social/tags/LaraconEU" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LaraconEU</span></a> and on Friday I will release <a href="https://phpc.social/tags/PHPUnit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPUnit</span></a> 12.</p><p>Why don't you join me on Friday for a two-hour, free-to-attend, online session?</p><p><a href="https://phpunit.de/test-smarter-not-harder.html?ref=mastodon" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">phpunit.de/test-smarter-not-ha</span><span class="invisible">rder.html?ref=mastodon</span></a></p><p>I will talk about PHPUnit 12, of course, and share unique insights on how to get the most out of PHPUnit in 2025.</p>
Emanuele Panz<p>Looking for <a href="https://phpc.social/tags/phpunit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>phpunit</span></a> code coverage dark-themes, are you using it?</p><p>Did not find any native support from PHPunit's tools, just some drop-in custom.css files.</p><p>Found so far just 2 of them:<br>1. <a href="https://github.com/chriswpage/phpunit-coverage-theme" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/chriswpage/phpunit-</span><span class="invisible">coverage-theme</span></a> (updated 2024)</p><p>2. <a href="https://github.com/Porthorian/phpunit-code-coverage-theme" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/Porthorian/phpunit-</span><span class="invisible">code-coverage-theme</span></a> (updated 2022)</p><p>From my preliminary research: the coverage tool is using bootstrap v4, while a dark-mode was only introduced in v5.3.</p><p>I should not dig into that migration path, or should I? 😅</p><p><a href="https://phpc.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://phpc.social/tags/darkmode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>darkmode</span></a> <a href="https://phpc.social/tags/phpunit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>phpunit</span></a> <a href="https://phpc.social/tags/codecoverage" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codecoverage</span></a></p>
Sebastian Bergmann :phpunit:<p>Join me for a two-hour, free-to-attend, online session on <a href="https://phpc.social/tags/PHPUnit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPUnit</span></a> 12 on February 7, 2025:</p><p><a href="https://phpunit.de/test-smarter-not-harder.html?ref=mastodon" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">phpunit.de/test-smarter-not-ha</span><span class="invisible">rder.html?ref=mastodon</span></a></p>
Sebastian Bergmann :phpunit:<p>I just commited the first change to adapt <a href="https://phpc.social/tags/PHPUnit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPUnit</span></a>('s test suite) to <a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> 8.5:</p><p><a href="https://github.com/sebastianbergmann/phpunit/commit/1881f84a3c61924851425ab0435ad9535aa7c7a2" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/sebastianbergmann/p</span><span class="invisible">hpunit/commit/1881f84a3c61924851425ab0435ad9535aa7c7a2</span></a></p>
Symfony Station 🇺🇦🇨🇦🇬🇱<p>SymfonyLive Berlin 2025: So you think you know PHPUnit. <a href="https://drupal.community/tags/symfony" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>symfony</span></a> <a href="https://drupal.community/tags/PHPunit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHPunit</span></a><br><a href="https://symfony.com/blog/symfonylive-berlin-2025-so-you-think-you-know-phpunit?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">symfony.com/blog/symfonylive-b</span><span class="invisible">erlin-2025-so-you-think-you-know-phpunit?utm_source=Symfony%20Blog%20Feed&amp;utm_medium=feed</span></a></p>