/** * @covers \GeneratedHydrator\Configuration::getGeneratedClassAutoloader * @covers \GeneratedHydrator\Configuration::setGeneratedClassAutoloader */ public function testSetGetGeneratedClassAutoloader() { $this->assertInstanceOf('CodeGenerationUtils\\Autoloader\\AutoloaderInterface', $this->configuration->getGeneratedClassAutoloader()); $autoloader = $this->getMock('CodeGenerationUtils\\Autoloader\\AutoloaderInterface'); $this->configuration->setGeneratedClassAutoloader($autoloader); $this->assertSame($autoloader, $this->configuration->getGeneratedClassAutoloader()); }