/** * Get mapping driver. * * @return MappingDriver */ public function getMappingDriver() { if (null === $this->mappingDriver) { $provider = new MappingDriverProvider($this->getCache()); $this->mappingDriver = $provider->getMappingDriver(); } return $this->mappingDriver; }
/** * Test that a mapping driver can be created. */ public function testMappingDriverCreation() { $cache = $this->createMock(Cache::class); $provider = new MappingDriverProvider($cache); $this->assertInstanceOf(MappingDriver::class, $provider->getMappingDriver()); }