/** * @expectedException White_Error_Authentication */ function testListAuthenticationException() { White::setApiKey('invalid_token'); White_Charge::all(); }
function testList() { $result = White_Charge::all(); //No assertion. If there is an error, an exception is thrown. Otherwise it was ok. }