. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Factories; use Fisharebest\Webtrees\Http\RequestHandlers\HomePage; use Fisharebest\Webtrees\TestCase; /** * Test harness for the class RouteFactory * * @covers \Fisharebest\Webtrees\Factories\RouteFactory */ class RouteFactoryTest extends TestCase { /** */ public function testEmptyQueryParameterInURL(): void { $route_factory = new RouteFactory(); $url = $route_factory->route(HomePage::class, ['foo' => null, 'bar' => '']); $this->assertStringNotContainsString('foo=', $url); $this->assertStringContainsString('bar=', $url); } }