@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.

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

#PHPUnit 10.5.12 and 11.0.5 are the first releases that use GitHub's Releases feature:

https://github.com/sebastianbergmann/phpunit/releases

sebastian, to random
@sebastian@phpc.social avatar

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.

https://github.com/sebastianbergmann/phpunit/commit/fac35fd7a94cc505e2b5e19157d6238beefe3f05

sebastian,
@sebastian@phpc.social avatar

Last weekend, all by myself, I hit a brick wall while working on https://github.com/sebastianbergmann/phpunit/issues/5720#issuecomment-1975096608

sebastian,
@sebastian@phpc.social avatar

In a mob programming session with @theseer, @localheinz, @sebastianheuer, @Schrank, Frank Sons, we overcame that brick wall together.

As a result, #PHPUnit 11.1 will support filtering when listing tests. This will make some tooling around PHPUnit a lot easier to implement.

sebastian,
@sebastian@phpc.social avatar

I don't know yet what we will be working on today, but I am looking forward to it!

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

Auf dem Weg zum #TYPO3 Community-Sprint von Mo-Mi. 50km Luftlinie in 2,5h mit ÖPNV regelt. Gut, dass ich diesmal dort übernachte 🥲

Habe mir einiges vorgenommen, mal schauen was realistisch ist: https://notes.typo3.org/NzA5lharQI2Uvq4iNVmlvw?view

sebastian,
@sebastian@phpc.social avatar

@supergarv Viel Spaß! Ich freue mich auf den #PHPUnit Code Sprint in Hamburg am Freitag und Samstag :)

sebastian, to random
@sebastian@phpc.social avatar

I do not understand this patch coverage report from #Codecov for a pull request for #PHPUnit.

It says at the top that code coverage decreases by 0.06% overall, but the code coverage of the individual files increases.

What am I missing?

sebastian,
@sebastian@phpc.social avatar

@ocramius Totally did not think of that ;)

The pull request actually decreases the code coverage. I was just confused by Codecov's way of communicating this fact.

Code Coverage for phpunit-12/annotations-cleanup branch of PHPUnit at revision e817f3d2a2359cd086c7366c77cb48b40673bcdb

saramg, to random
@saramg@fosstodon.org avatar

Gosh, where would we be without machine learning?

Context: I've been sick for four days and have scarcely left my bed.

sebastian,
@sebastian@phpc.social avatar

@saramg Get well soon!

OndrejMirtes, to random
@OndrejMirtes@phpc.social avatar

Never trust a test you haven’t seen fail first.

sebastian,
@sebastian@phpc.social avatar

@OndrejMirtes I agree in general, but I have witnessed sometimes during TDD that a new test just passed without production code changes.

sebastian,
@sebastian@phpc.social avatar

@nCrazed @OndrejMirtes Which is exactly what I did on those occasions.

isotopp, to random German
@isotopp@chaos.social avatar

https://blog.koehntopp.info/2024/02/19/python-slots.html

In which I try to understand Python slots.

I find that dict is not really worse than slots, which is unexpected.

I also compare Perl, Python and PHP, and find that Python is slightly better than Perl in memory usage per object, which is impressive.

I also find that PHP uses as much memory as I would have Python dict expected to use, but Python optimizes this – PHP does not.

sebastian,
@sebastian@phpc.social avatar

@isotopp Instead of silencing the deprecation you could have used the #[AllowDynamicProperties] attribute on the class.

https://wiki.php.net/rfc/deprecate_dynamic_properties

sebastian,
@sebastian@phpc.social avatar

@Girgias @isotopp Thank you for replying. I knew, of course, that the attribute would not impact the memory consumption, but that was the only thing I was able to add to the conversation.

SecondeJ, to random
@SecondeJ@phpc.social avatar

Random question but hi @sebastian were you at PHPUK? For some reason I thought I saw you and didn't introduce myself (which probably benefits you tbh)

sebastian,
@sebastian@phpc.social avatar

@SecondeJ I was not at PHPUK.

ian, to random
@ian@phpc.social avatar

Continuing with phpc.social's trend of defederating instances that are abandonware (defined as no posts in their local timeline this year) other than spewing spam, we're defederating

waterlily.tokyo
mentalhealth-masto.com
kokuusa.club
mastodon.integrata-stiftung.de
social.mastodon.my

We've seen spam from other instances, but are giving instances with legitimate traffic on them the benefit of the doubt for now.

#MastoAdmin #fediblock

sebastian,
@sebastian@phpc.social avatar

@ian Thank you for your work!

afilina, to random
@afilina@phpc.social avatar

About that Ukraine sweater I mentioned earlier. I wore it to go meet some speakers. The hotel was filled with russian-speaking people for some dancing competition. I hope I offended somebody. One older guy kept staring at it. I couldn't have asked for a better opportunity to wear it, hehe.

sebastian,
@sebastian@phpc.social avatar

@afilina Nice sweater!

Reminds me of the destroyed Russian tank that was parked in Berlin in front of the Russian embassy.

🇺🇦

sebastian, to random
@sebastian@phpc.social avatar

OSS contributions are not limited to code.

Today I am very thankful for questions asked by @markusstaab and @OndrejMirtes on #PHPUnit's issue tracker.

These quesions motivated me to improve how PHPUnit's CLI test runner handles options. The next bugfix releases for PHPUnit 10.5 and PHPUnit 11.0 will warn about confusing behaviour and PHPUnit 11.1 will bring more improvements.

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

Do you still use PHP on 32 bit machines?

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

This Friday, February 16, 2024, from 10:00 to 12:00 (Europe/Berlin), I will explain the motivation behind the most important changes in #PHPUnit 11 and demonstrate them with live coding. We will cover new features as well as migrating from PHPUnit 10 to PHPUnit 11.

This online event is part of thePHP.cc's education flatrate, but is free and open to all.

Would you like to attend? Just send me an e-mail with the subject "PHPUnit 11 Live Demonstration" to sebastian@thephp.cc.

See you on Friday?

sebastian,
@sebastian@phpc.social avatar

@theshaunwalker Europe/Berlin

sebastian,
@sebastian@phpc.social avatar

@stof This will not be recorded.

sebastian, to random
@sebastian@phpc.social avatar

Happy I Love Free Software Day everyone! ❤️ #ilovefs

wouterj, to Symfony
@wouterj@phpc.social avatar

Played a bit with statistics this week: The average age of PHP code lines in #symfony

75% of the lines are edited within the past 4 years. That's pretty amazing for a codebase that is 15 years old!

Also interesting to see some components that were more or less feature complete from the start (Mime, RateLimiter, etc.) and needed very few changes after their release.

sebastian,
@sebastian@phpc.social avatar

@wouterj How did you calculate this and how did you render this chart? Thanks!

sebastian, to random
@sebastian@phpc.social avatar

Woke up and released #PHPUnit 11's dependencies before breakfast. I already have a 11.0.0 tag, but have not pushed it yet.

After I had some tea, I will run some final tests and then push the tag, publish the PHAR, update the website, start the development of PHPUnit 11.1, etc.

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