. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Factories; use Fisharebest\Webtrees\Http\RequestHandlers\HomePage; use Fisharebest\Webtrees\TestCase; use PHPUnit\Framework\Attributes\CoversClass; #[CoversClass(RouteFactory::class)] class RouteFactoryTest extends TestCase { /** */ public function testEmptyQueryParameterInURL(): void { $route_factory = new RouteFactory(); $url = $route_factory->route(HomePage::class, ['foo' => null, 'bar' => '']); static::assertStringNotContainsString('foo=', $url); static::assertStringContainsString('bar=', $url); } }