/** * TypeRegistry constructor. * @param EnumTypeGenerator $typeGenerator * @param EnumTypeStorage $typeStorage */ public function __construct(EnumTypeGenerator $typeGenerator, EnumTypeStorage $typeStorage) { $this->typeGenerator = $typeGenerator; $this->typeStorage = $typeStorage; $autoloader = new EnumTypeAutoloader($this->typeStorage); $autoloader->register(); }
public function testItReturnsFalseIfClassDoesNotExistsInStorage() { $this->storage->shouldReceive('exists')->with('some_class')->andReturn(false); $this->assertFalse($this->sut->loadClass('some_class')); }