mastodon.ie is one of the many independent Mastodon servers you can use to participate in the fediverse.
Irish Mastodon - run from Ireland, we welcome all who respect the community rules and members.

Administered by:

Server stats:

1.6K
active users

#phpunit

2 posts2 participants0 posts today
Sebastian Bergmann :phpunit:<p>I have just published <a href="https://phpc.social/tags/PHPUnit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHPUnit</span></a> versions 11.5.44 and 12.4.3.</p><p>These are the first releases to use GitHub's new "Immutable Releases" feature, which means that the associated Git tag cannot be changed after publication.</p><p>This hopefully improves security and makes supply chain attacks slightly more difficult.</p>
PHPUnit<p><a href="https://phpc.social/tags/PHPUnit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PHPUnit</span></a> 12.4.3 has been released: <a href="https://github.com/sebastianbergmann/phpunit/releases/tag/12.4.3" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/sebastianbergmann/p</span><span class="invisible">hpunit/releases/tag/12.4.3</span></a></p>

Félicitations à Mohamed, développeur chez WanadevDigital, pour sa contribution à l’écosystème @symfony

Avec la nouvelle classe MockUuidFactory, intégrée à Symfony 7.4, les tests unitaires deviennent plus fiables et reproductibles.

Elle permet de simuler la génération d’UUIDs pour des résultats prédictibles et stables.

Mise en avant par l’équipe Symfony : symfony.com/blog/new-in-symfon

Symfony 7.4 improves UUIDs by generating UUID v7 by default, adding microsecond precision, and making them easier to use in tests.
symfony.comNew in Symfony 7.4: Uid Improvements (Symfony Blog)Symfony 7.4 improves UUIDs by generating UUID v7 by default, adding microsecond precision, and making them easier to use in tests.
#PHP#PhpUnit#UUID

A big thank you goes out to @jetbrains and the @phpstorm team, which started sponsoring my open source work.

I am really proud that more and more companies believe in my open source efforts and can see value generated with , ,

blog.jetbrains.com/phpstorm/20

The JetBrains BlogMoving PHP open source forward | The PhpStorm BlogExplore our new round of sponsorships, as well as a more structured approach towards new PHP open source sponsorships in the future.

Excuse no. 89:
"We prefer composition over inheritance, but because of final classes, we can't test our codebase."

Solutions:
Interfaces – cleanest approach (yes, doubles the files, but results in cleaner architecture). Direct instantiation – not everything needs to be mocked (Value Objects)! uopz - if at hand. dg/bypass-finals - as a last resort.

If final stops you from testing, wait until you hear about private!
Oh wait, that's excuse no. 90.

#PHP#testing#TYPO3

Excuse no. 125:
"The project is too small for tests."

This is the wrong approach. If it’s big enough to deploy, it’s big enough to disappoint you in production.
Did you already test it in a browser? Wasted effort. Write a test instead.

A browser reload is hope. An assertion is insurance.

#PHP#Testing#TDD

Relationship status: complicated

After the 42nd reload my browser said, “I’m not your QA.”
I took the hint.
Now remembers every step, never fat-fingers a radio button and always clears caches.
My browser and I still go on UI dates. Just not 42 in a row.
Domestic bliss restored.

Gamers reload. Devs run tests.
Don’t be a git like me. Commit to tests!

#PHP#TYPO3#Testing

I'm working on a project right now where it would be suuuuper handy to have a config file instead of an XML config file for .

Right now I'm working with 4 different configuration files (plus .dist for each) and it gets kind of annoying that there's no way to get them to extend a base file.