/** * */ public function testExpects() { // Perform the call $response = $this->simpleApiCallerService->expects('xml')->get('http://www.w3schools.com/xml/note.xml'); // Check values $this->assertEquals('SimpleXMLElement', get_class($response)); }
public function expects($mimeType) { $this->apiCaller->setMimeType($mimeType); return $this; }
/** * Test getData method */ public function testHeaders() { $apiCaller = HttpfulSimpleApiCaller::getInstance(); $apiCaller->setHeaders(); }