public function testIdentityReportCreation()
 {
     $factory = new ReportFactory();
     $report = $factory->createReport(array('name' => 'identity'));
     $this->assertInstanceOf('Favor\\Onfido\\Report\\IdentityReport', $report);
 }
Exemple #2
0
 public function retrieveReport($check_id, $report_id)
 {
     $response = $this->client->request('GET', "/v1/checks/{$check_id}/checks/{$report_id}", ['headers' => ['Authorization' => "Token token={$this->authToken}"]]);
     $body = (string) $response->getBody();
     $report_json = json_decode($body, true);
     $report_factory = new ReportFactory();
     $report = $report_factory->createReport($report_json);
     return $report;
 }