Skip to content

Commit

Permalink
Update ResponseHandlerTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Beakerboy committed Jul 25, 2019
1 parent f69a653 commit 72f8163
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions tests/Unit/ResponseHandlerTest.php
Expand Up @@ -19,31 +19,31 @@ class ResponseHandlerTest extends \PHPUnit\Framework\TestCase
private $generator;
private $responder;
private $handler;
private $cashaddr = 'qpjvm3u8cvjddupctguwatrlaxtutprg8s04ekldyr';
private $metadata = [
'name' => 'Alice',
'family' => 'Smith',
'nickname' => 'ajsmith',
'age' => 20,
'gender' => 'female',
'birthdate' => '1999-01-01',
'national' => 'USA',
'country' => 'USA',
'state' => 'CA',
'city' => 'Los Angeles',
'streetname' => 'Main',
'streetnumber' => '123',
'email' => 'ajsmith@example.com',
'social' => '123-45-6789',
'phone' => '123-123-1234',
'postal' => '12345',
];

/**
* Set up the default objects for the test
*/
public function setUp()
{
$this->cashaddr = 'qpjvm3u8cvjddupctguwatrlaxtutprg8s04ekldyr';
$this->metadata = [
'name' => 'Alice',
'family' => 'Smith',
'nickname' => 'ajsmith',
'age' => 20,
'gender' => 'female',
'birthdate' => '1999-01-01',
'national' => 'USA',
'country' => 'USA',
'state' => 'CA',
'city' => 'Los Angeles',
'streetname' => 'Main',
'streetnumber' => '123',
'email' => 'ajsmith@example.com',
'social' => '123-45-6789',
'phone' => '123-123-1234',
'postal' => '12345',
];
$this->generator = new RequestGenerator("demo.cashid.info", "/api/parse.php");
$this->responder = new ResponseGenerator($this->metadata);
$this->handler = new ResponseHandler("demo.cashid.info", "/api/parse.php");
Expand Down

0 comments on commit 72f8163

Please sign in to comment.