assertClassImplements(ConnectionFactory::class, NullConnectionFactory::class); } public function testCouldBeConstructedWithoutAnyArguments() { new NullConnectionFactory(); } public function testShouldReturnNullContextOnCreateContextCall() { $factory = new NullConnectionFactory(); $context = $factory->createContext(); $this->assertInstanceOf(NullContext::class, $context); } }