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

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

TIL:

in case you run with --filter consider also using --fail-on-empty-test-suite

.. otherwise when no tests get executed (e.g. because of a typo in the filter) you might not notice your CI pipeline is happily executing no tests 🙂

opdavies, to drupal
@opdavies@mastodon.social avatar

Making the easy change to get a test to pass might mean you write more logic in your tests than you expect, at least to begin with.

https://www.oliverdavies.uk/archive/2024/02/16/keep-logic-within-tests-for-as-long-as-you-can

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

After tinkering with --test-files option, I was able to parallelize the slowest tests over several github actions.

tests finish in 4m 15s, while it takes ~10m 30s before.
fingers crossed this can be merged :-)

https://github.com/phpstan/phpstan-src/pull/2916#discussion_r1492502527

lolli, to random
@lolli@norden.social avatar

Looking for a rule to change @test@norden.social annotation to #[Test] attribute. Could only find something for '@dataProvider' and '@testWith`. Any pointers?

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

TIL.

There is a cli option —list-tests.

Lets see whether I can make something usefull with it - stay tuned 🥸

alda, (edited ) to php
@alda@topspicy.social avatar

Just showing off my little side project that should make PHPUnit testing for WordPress plugins less of a pain.

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 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?

angelov, to php

Published a new version of my PHPUnit extension for using the PHP-VCR library inside tests - it now supports PHPUnit 11 - https://github.com/angelov/phpunit-php-vcr

sebastian, to random

11 has been released today!

sebastian,

On February 16, 2024 from 10:00 to 12:00 (Europe/Berlin), two weeks from today, I will explain the motivation behind the most important changes in 11 and demonstrate them with live coding.

This event, which is part of our education flatrate's curriculum, will be open to the public and in English.

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

Woke up and released 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.

symfonystation, to Symfony
@symfonystation@phpc.social avatar

Explore the February 24, 2023 @symfonystation Communiqué of Symfony, Drupal, PHP, Fediverse, and Cybersecurity news for evergreen content. https://symfonystation.mobileatom.net/Symfony-Station-Communique-24-February-2023 :symfony: :elephpant_purple: :drupalicon: :wordpress: :mastodon: :fediverse: :php: :phpunit: :mariadb: :laravel: :apiplatform: :phpstan: 🇺🇦

symfonystation, to Symfony
@symfonystation@phpc.social avatar
brunty, to php
@brunty@brunty.social avatar

folks, what framework-agnostic tooling (as in not / / etc) are you using for running headless browser-based tests these days via something like ?

I'm looking at setting something up in on , I've tried Symfony Panther and it's been a shitshow of errors and not being able to get or running in Docker :/

phpunit, to random
@phpunit@phpc.social avatar
andrewfeeney, to random
@andrewfeeney@phpc.social avatar

Trying to find a straightforward way to merge XML coverage reports generated by via . The end goal is a nice HTML report. I can generate the HTML report or XML for a single chunk, but none of the tooling I can find to combine the chunks works. There's an open bug in which prevents the serialized PHP reports from being able to be combined.

I'd consider tools in php, python, node, rust, or binaries for mac or linux.

Does anyone have a go to solution?

greg0ire, to php
@greg0ire@phpc.social avatar

Latest blog post (can be useful for OSS maintainers who need to explain the same thing over and over): https://dev.to/greg0ire/bisecting-vendors-12kd

SenseException,
@SenseException@phpc.social avatar

@greg0ire This reminds me of the codesprint 2019, where we searched for a vendor phpunit performance issue.

https://twitter.com/movetodevnull/status/1170019898938015745
https://twitter.com/SenseException/status/1169922774783135745

But we did more manual work on that day compared to what the blog post described. Too bad that the picture of us is gone.

/cc @movetodevnull

symfonystation, to Symfony
@symfonystation@phpc.social avatar

"Explore the February 10, 2023 @symfonystation Communiqué of Symfony, Drupal, PHP, and Cybersecurity news for evergreen content. https://symfonystation.mobileatom.net/Symfony-Station-Communique-10-February-2023 #Symfony #PHP #Drupal #Cybersecurity #Mastodon #HTML #CSS #Svelte #PHPUnit #Pest #WayBackWednesday
:symfony: :elephpant_purple: :drupalicon: :javascript: :mastodon: :fediverse: :doctrine: :mysql: :phpunit: :apiplatform: :xdebug:

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

2024 will be the 25ᵗʰ year in which I work on :

https://sebastian-bergmann.de/open-source.html

itsjoshbruce, (edited ) to php
@itsjoshbruce@phpc.social avatar

Search-fu is failing me. When I run PHPUnit tests, I get a warning about 2 deprecations.

It doesn't say where, though.

Personal projects on a holiday for the win. lol

UPDATE: --display-deprecations

dandb, to php
@dandb@mas.to avatar

Really liking the 10 attributes. I'm not sure it makes a substantive difference for me in most of my testing, but the vibes are right.

I hope I live to see the day that I can write a application without using a single .

sebastian, to random
@sebastian@phpc.social avatar

If you install using Composer (which is not the recommended way) then you can now use both PHPUnit 9.6 and PHPUnit 10.5 in projects that depend on either PHP-Parser 4 or PHP-Parser 5.

https://github.com/sebastianbergmann/php-code-coverage/issues/1004

sebastian,
@sebastian@phpc.social avatar

The implementation details of 's PHAR distribution are documented here:

https://docs.phpunit.de/en/10.5/installation.html#what-is-inside-the-phar

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