/** * @expectedException \petrepatrasc\BlizzardApiBundle\Entity\Exception\BlizzardApiException */ public function testMakeCallWhenExceptionIsHit() { $this->callServiceMock->expects($this->atLeastOnce())->method('makeCallToApiService')->withAnyParameters()->will($this->returnValue(file_get_contents(self::MOCK_PATH . 'resource-not-found.json'))); $callResponse = $this->apiService->makeCall(Entity\Region::Europe, ApiService::API_REWARDS_METHOD, array(), false); }