#microformats 2026-11-09
2026-11-09 UTC
thatoddshade, rMdes, barnaby, strugee and [pfefferle] joined the channel
#
[pfefferle] [tantek] I thought about our last chat about the side-files and experimented a bit: https://github.com/indieweb/wordpress-mf2-feed/pull/36
[Murray], barnaby, [KevinMarks] and rMdes joined the channel
barnaby, [aciccarello] and [artlung] joined the channel
#
gRegor jtojnar, I'm not opposed to the mock server. No experience with that one myself, would appreciate any other parser devs input: https://github.com/microformats/php-mf2/pull/281 Zegnat, [pfefferle], GWG, jkingweb, any others
#
jkingweb It's what I use, for what it's worth. It's a library which starts and stops the basic built-in PHP server on-demand. It certainly beats relying on an external resource not changing, and it adds no added dependencies since it's just using what's built in PHP. The library does require the sockets PHP extension, but this is only required if you're not specifying a port number for the server.
emery and [Leo] joined the channel
#
Zegnat Interesting. In one of my current projects I fake the HTTP request through dependency injection instead, requires no separate processes: https://github.com/Zegnat/php-webmention-endpoint-discovery/blob/main/tests/FakeHttp.php - I think you could do something similar in php-mf2 with https://github.com/php-mock/php-mock-phpunit to override curl.
#
jkingweb Unfortunately it's a hard dependency in composer.json, so `composer install` will fail before you even get to running the tests. For my application I got around by adding provides:ext-sockets, but a library can't do that (because there is no provides-dev section in the Composer schema). I'll need to figure out a workaround (or use something else) soon, though, as I'll shortly be facing the same problem.
cobbland and [pcarrier_com] joined the channel
#
[pfefferle] these are two very small wrappers for curl… I think a mock server to simply test a GET request is a bit overkill!? aside from that, I would prefer the build in PHP server over the mock server. this is less dependencies…
#
[pfefferle] but I generally agree that we should not test live data…
#
[pfefferle] maybe we could use github pages… if github is down, the tests won’t work either 😉
Kaja joined the channel
#
[aciccarello] I have some tests for omnibear that run against the webmention.rocks test suite
#
[pfefferle] You can require only for dev
