/** * @test * @expectedException \UnexpectedValueException */ public function shouldThrowException() { $browser = $this->getBrowser(); $browser->expects($this->at(0))->method('get')->with($this->equalTo('https://api.travis-ci.org/l3l0/OpenSocialBundle.json'))->will($this->returnValue($this->getResponse(''))); $client = new Client(); $client->setBrowser($browser); $repository = $client->fetchRepository('l3l0/OpenSocialBundle'); }