@sebastian@phpc.social
@sebastian@phpc.social avatar

sebastian

@sebastian@phpc.social

Created PHPUnit. Co-Founded thePHPcc. Helps developers build better software.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

supergarv, to random German
@supergarv@phpc.social avatar

Heute habe ich endlich mal mit phpcs und phpcs 🤡 herumgespielt und selber eingerichtet&konfiguriert.

So richtig klar ist mir immer noch nicht warum es dafür zwei Tools bedarf, und warum beide quasi gleich abgekürzt werden.

phpstan kriege ich ja noch abgegrenzt.

Und möchte/muss ich mich auch noch mit psalm einreiben?

sebastian,
@sebastian@phpc.social avatar

@supergarv @oliklee Diese Werkzeuge verfolgen unterschiedliche Ziele.

PHP-CS-Fixer kümmert sich, wie der Code aussieht: Formattierung, Reihenfolge der Methoden, keine unnötigen FQCNs, etc.

PHP_CodeSniffer kümmert sich vorrangig um Formattierung. Da es nicht darauf limitiert ist, alles, was es anmeckert, auch korrigieren zu können, kann es bspw. auch Softwaremetriken berechnen oder Aussagen über die benötigte PHP-Version treffen.

sebastian,
@sebastian@phpc.social avatar

@supergarv @oliklee Psalm und PHPStan machen statische Codeanalyse, um echte Fehler (keine Fehler in Bezug auf Aussehen des Codes) zu finden, ohne dass der Code, beispielsweise durch automatisierte Tests, tatsächlich ausgeführt wird.

sebastian, to berlin
@sebastian@phpc.social avatar

I am happy to announce that I will return to this year.

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 's test double functionality works and which parts of it you should stay clear of.

sebastian, to random
@sebastian@phpc.social avatar

I love it when a plan comes together and the relevant test passes.

markusstaab, to random German
@markusstaab@phpc.social avatar

TIL: when using shivammathur/setup-php@v2 you need to define ini-file: "development" to get php to emit deprecation warnings.

otherwise your unit tests won't catch deprecation warnings and the CI will unexpectedly succeed.

see https://github.com/shivammathur/setup-php/issues/827

sebastian,
@sebastian@phpc.social avatar
sebastian,
@sebastian@phpc.social avatar

@markusstaab I try to be as explicit as possible: no extensions by default, no INI settings by default. And then explicitly configure and load what I need.

connorhu, to random
@connorhu@mastodon.social avatar

@sebastian I would like to ask you, how feasible do you think it is for your diff library to be able to do a comparison on object[] data structures? I can see where it needs to be touched, but you know your own design better, so you might have a better idea of how feasible it is and what the change will cause. A PR for php-cs-fixer raised the need to diff on a Token[] structure.

sebastian,
@sebastian@phpc.social avatar

@connorhu I would like to keep that outside of the diff library. For PHPUnit, objects are mapped to arrays which are then passed to the Differ.

sebastian, to random
@sebastian@phpc.social avatar

With GitHub Releases, is there a way to configure "N commits to 11.0 since this release" instead of "N commits to main since this release"?

sebastian,
@sebastian@phpc.social avatar

@asgrim I understand that is uses the repository's default branch. But I don't want that :-) I would like for it to use the relevant release branch.

sebastian,
@sebastian@phpc.social avatar

@alessandrolai Yes, the UI (which I don't use) has a dropdown. But that is for selecting the previous version, which is superfluous if you use semantic versioning.

sebastian,
@sebastian@phpc.social avatar

@ghostwriter I will look into this. Thanks!

supergarv, to random German
@supergarv@phpc.social avatar

Brettspieltag bei Sebastian, wie immer eine große Freude und war sehr nah an meiner kognitiven Spielregellastgrenze. Sehr viele Zugmöglichkeiten, viel Varianz und Entscheidungsmöglichkeit|-zwang. Für mich als min/maxer schwer zu ertragen 🫣 Ohne Erklärbär Sebastian hätte ich bei den Regeln schon die weisse Fahne geschwenkt.
https://brettspiel.space/@sebastian/112106384569032025

sebastian,
@sebastian@phpc.social avatar

@beberleiIch Ich bringe es gerne beim nächsten Mal wieder auf den Tisch.

OndrejMirtes, to random
@OndrejMirtes@phpc.social avatar

Sometimes I like to write silly commit messages. #phpstan

sebastian,
@sebastian@phpc.social avatar

@OndrejMirtes Looking forward to "The Last Side Effect".

oliklee, to php
@oliklee@chaos.social avatar

And with the TCCD exam passed, I now am a certified unicorn again!

sebastian,
@sebastian@phpc.social avatar

@oliklee Congratulations!

sebastian, to php
@sebastian@phpc.social avatar

Just submitted two sessions for this year's Developer Days. Here's hoping they will be accepted ...🤞🏻

sebastian,
@sebastian@phpc.social avatar

@jaapio I think I'll be fine, but thanks for offering.

sebastian, to php
@sebastian@phpc.social avatar

Looking at the 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 land with the community 😉

sebastian,
@sebastian@phpc.social avatar

@cybersmog Interesting, but Karlsruhe is farther away than Düsseldorf. I will see whether I can fit that into my schedule.

Seriously, though: do you think a technical presentation on PHPUnit would be more suited for the TYPO3 Developer Days than for T3CON?

sebastian,
@sebastian@phpc.social avatar

@danielsiepmann @cybersmog Okay, thank you for sharing that context.

sebastian,
@sebastian@phpc.social avatar

@oliklee Thank you, Oli!

sebastian,
@sebastian@phpc.social avatar

@cybersmog Thank you, Peter!

sebastian,
@sebastian@phpc.social avatar

@oliklee I know that travel expenses are not covered. For an event such as Developer Days that is fine for me.

sebastian, to php
@sebastian@phpc.social avatar

It's that time again: I'm thinking about what I want to share at conferences about in general and with in particular.

Feel free to write your ideas and wishes in a reply to this toot.

sebastian,
@sebastian@phpc.social avatar

@Crell Thank you!

sebastian,
@sebastian@phpc.social avatar

@acelaya @Crell The TestWith attribute would be on the "Top 10 Features Sebastian Does Not Use Himself" list, I guess ;-)

sebastian,
@sebastian@phpc.social avatar

@acelaya Personal preference.

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