Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
include person json encode test
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Aug 18, 2019
1 parent 1458b09 commit d3e750a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Peru/Jne/DniTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public function testGetDni($dni)
$this->assertNotEmpty($person->nombres);
$this->assertNotEmpty($person->apellidoMaterno);
$this->assertNotEmpty($person->apellidoPaterno);

$json = json_encode($person);
$this->assertJson($json);
$obj = json_decode($json);
$this->assertNotEmpty($obj->ruc);
}

public function testInvalidDni()
Expand Down

0 comments on commit d3e750a

Please sign in to comment.