public function throwsWhenTryingToGetLessThanOneInstance() { $this->factory->defineEntity('SpaceShip'); $self = $this; $this->assertThrows(function () use($self) { $self->factory->getList('SpaceShip', array(), 0); }); }