/** * @return CacheCollectedDataBuilder */ private function create($type) { return $this->cacheCollectedDataBuilder->create($type)->withProviderId($this->providerId); }
/** * @test * @expectedException \InvalidArgumentException */ public function InvalidType_ThrowException() { $cacheCollectedDataBuilder = new CacheCollectedDataBuilder(); $cacheCollectedDataBuilder->create('invalid'); }