factory = new BeanstalkTransportFactory(); } public function testCreateTransport(): void { $transport = $this->factory->createTransport( static::DSN, [], $this->createMock(SerializerInterface::class) ); static::assertInstanceOf(BeanstalkTransport::class, $transport); } public function testSupports(): void { static::assertTrue($this->factory->supports(static::DSN, [])); static::assertFalse($this->factory->supports('invalid dsn', [])); } }