public function testRunGet() { $testArray = $this->setHttpMethodExpectations(); $response = $this->requester->runGet('test-uri', $testArray); $this->assertInstanceOf('Credibility\\DandB\\Response', $response); $this->assertTrue($response->isValid()); $this->assertArrayHasKey('business_name', $response->getResponseData()); $this->assertArrayHasKey('business_value', $response->getResponseData()); }
/** * Return the status of a user based on a user token * * @see DandB::userToken * @param $userToken * @return Response * @throws RequestException|LogicException|ParseException */ public function userTokenStatus($userToken) { return $this->requester->runGet('/v1/user/token', array('user_token' => $userToken)); }