oliklee, to Engineering German
@oliklee@chaos.social avatar

Ich hab gestern die #Engineering-Kiosk-#Podcast-Episode mit @sebastian angehört, in der er den großen Überblick über Arten von automatisierten Tests und die Philosophien dahinter gibt. Große Hörempfehlung! #PHPUnit
https://engineeringkiosk.dev/podcast/episode/126-killing-the-mutant-teststrategien-mit-sebastian-bergmann/

ramsey, (edited ) to random
@ramsey@phpc.social avatar

Since #PHPUnit 11 no longer has any of the CodeCoverageIgnore attributes, and the docs say “Do not use annotations in comments in new tests that you write. Use attributes instead,” does this mean PHPUnit will no longer allow you to exclude classes, functions, or blocks of code from coverage reports? #PHP

phphil,
@phphil@phpc.social avatar
ramsey,
@ramsey@phpc.social avatar

@phphil You apply that to a test class to tell PHPUnit that the test does not cover any code.

sebastian, to random
@sebastian@phpc.social avatar
sebastian, to random
@sebastian@phpc.social avatar

Learning about testing interdimensional variation graphs in event-sourced systems with at .

mobileatom, to php
@mobileatom@flipboard.com avatar
jaapio, to php Dutch
@jaapio@phpc.social avatar

discovered livetechhelper.com, while the initiative could be positive explained, the execution is horrible! I found https://livetechhelper.com/repos/jaapio/phpunit
I can help with #phpunit but obviously any income should go to the original maintainers not to me because I created a fork!

Same applies to other projects, should we stop this?! #php #foss?

thomastospace,
@thomastospace@phpc.social avatar

@jaapio Yeah, I'm all for funding open source, but randomly advertising people's non-existent services together with rates is just not okay.

alessandrolai,
@alessandrolai@phpc.social avatar

@thomastospace @jaapio oh wow, I opened the page and I'm listed as the third possible "helper" 🤦‍♂️ yep, this is a bit "shady" to say the least..

thepanz, to random
@thepanz@phpc.social avatar

Working on the v1 codebase and its test suite, make you realise how much work has been done on , and it simply works! Thank you @sebastian!

At the same time the legacy Doctrine v1 still manages OK-ish in the era of ! Still with no class namespaces and by implementing its own autoloading system! Is it probably from times? 🤔

Kudos to the original authors!
(Are they around here BTW?)

ramsey,
@ramsey@phpc.social avatar

@thepanz @sebastian He’s not the first author, but @jwage took it over from the original author, which, as I recall is a pretty interesting story.

timmipetit,
@timmipetit@mstdn.social avatar

@thepanz @ramsey @jwage We still maintain a fork as well, runs on the latest php8 (https://github.com/Recras/doctrine1)

sebastian, to random
@sebastian@phpc.social avatar

I will be at #NeosCon24 next week to speak about #PHPUnit's test double functionality:

https://www.neoscon.io/talks/testing-with-doubles-why-when-and-how.html

mitelg, to php
@mitelg@phpc.social avatar
oliklee, (edited ) to random German
@oliklee@chaos.social avatar

Nicht vergessen: Vom 17.-19.06. bringe ich euch in Duisburg bei, wie ihr Tests für eure TYPO3-Extensions schreiben könnt:
https://nevercodealone.de/de/php-training/phpunit-tests-fuer-typo3-extensions

scottkeckwarren, to random
@scottkeckwarren@phpc.social avatar

developers, sometimes when I run I receive 100s of errors (in my integration tests) that might only originate from 2 lines. Is there a way to consolidate these based on stack trace?

sebastian,
@sebastian@phpc.social avatar

@mitelg @scottkeckwarren Should be possible with a custom result printer based on PHPUnit's event system.

scottkeckwarren,
@scottkeckwarren@phpc.social avatar

@sebastian @mitelg thanks I’ll have to look into that

ramsey, to php
@ramsey@phpc.social avatar

How does one use PHPUnit 10 or 11 with Symfony 7? The PHPUnit Bridge includes instructions that will only work for PHPUnit 9.

https://symfony.com/doc/current/components/phpunit_bridge.html

#PHP #PHPUnit #Symfony

cpereira,
ramsey,
@ramsey@phpc.social avatar

@cpereira That says they’ll probably jump directly to PHPUnit 11 and skip 10, which is fine with me.

pieceofthepie, to php
@pieceofthepie@n8e.dev avatar

Oh this is fun. I can't upgrade to 11 as it needs PHP-Parser 5+.

Which I can't use as needs 4+.

Not to mention this project itself needs PHP-Parser so that upgrade in of itself means work on my part.

Is this where I start using a PHAR?

pieceofthepie,
@pieceofthepie@n8e.dev avatar

@heiglandreas "Those aren't dependencies of your application. Just tools..."

Fair, but also, if I remove development dependencies from the my projects if they're just tools then those projects no longer have development dependencies.

Which I guess leads me to "what are development dependencies for if not things needed for development?"

heiglandreas,
@heiglandreas@phpc.social avatar

@pieceofthepie Exactly. Only for development. Your code also earns money without them.

But by adding them to the dev-dependencies you are tying the code that earns money to the tools you only need for development.

By using separate composer.jsons (or PHARs) you can use the tools without tying your code to them and their dependencies.

ShopwareDevs, to Symfony
@ShopwareDevs@phpc.social avatar

We have amazing speakers waiting for you at . One of them is @sebastian , sharing insights on for developers 😍! Check out the full schedule at https://scd.shopware.com/en-US/program. Can't wait to see you there! 🎉

ultimike, to drupal
@ultimike@drupal.community avatar

Episode 7 of 9 of Skills Upgrade is now available.

In this episode, I mentor Chad Hester on running some existing tests.

https://talkingdrupal.com/skills-upgrade-7

Thanks to @talkingdrupal for making this all possible!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • everett
  • DreamBathrooms
  • Durango
  • InstantRegret
  • ngwrru68w68
  • magazineikmin
  • mdbf
  • thenastyranch
  • Youngstown
  • slotface
  • cubers
  • kavyap
  • khanakhh
  • megavids
  • cisconetworking
  • tacticalgear
  • osvaldo12
  • ethstaker
  • modclub
  • rosin
  • tester
  • anitta
  • normalnudes
  • GTA5RPClips
  • Leos
  • provamag3
  • lostlight
  • All magazines