public function testRunPost() { $testArray = $this->setHttpMethodExpectations(); $mockAccessToken = 'test-token'; $response = $this->requester->runPost('test-uri', $testArray, $mockAccessToken); $this->assertInstanceOf('Credibility\\DandB\\Response', $response); $this->assertTrue($response->isValid()); $this->assertArrayHasKey('business_name', $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)); }