function testList() { $all = Start_Charge::all(); $this->assertNotEmpty($all["charges"]); }
function testList() { $result = Start_Charge::all(); //No assertion. If there is an error, an exception is thrown. Otherwise it was ok. }
/** * @expectedException Start_Error_Authentication */ function testListAuthenticationException() { Start::setApiKey('invalid_token'); Start_Charge::all(); }