function it_throws_exception_if_no_generator_found(Resource $resource) { $this->shouldThrow()->duringGenerate($resource, 'class', array('class' => 'CustomLoader')); }