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