assertSame('https://example.com/article', $event->url); $this->assertSame(42, $event->instanceId); $this->assertTrue($discoveredAt->eq($event->discoveredAt)); $this->assertSame('https://mastodon.social/@alice/109876543210', $event->postUrl); $this->assertSame('Check out this article: https://example.com/article', $event->postBody); } public function test_post_body_is_nullable(): void { $event = new UrlDiscovered( url: 'https://example.com/article', instanceId: 1, discoveredAt: CarbonImmutable::parse('2026-04-26T12:00:00'), postUrl: 'https://mastodon.social/@alice/109876543210', postBody: null ); $this->assertNull($event->postBody); } }