/** * @expectedException LeagueWrap\Exception\ApiClassNotFoundException */ public function testApiClassNotFoundException() { $api = new Api('key'); $nope = $api->nope(); }