diff --git a/tests/IdentityCardTest.php b/tests/IdentityCardTest.php index 0d340da..8011242 100644 --- a/tests/IdentityCardTest.php +++ b/tests/IdentityCardTest.php @@ -4,10 +4,24 @@ class IdentityCardTest extends PHPUnit\Framework\TestCase { - public function testMake() + public function testMakeIdentityCardInstance() { $idCard = IdentityCard::make('142701198003124054'); $this->assertEquals(IdentityCard::class, get_class($idCard)); } + + public function testMakeFalse() + { + $idCard = IdentityCard::make(''); + + $this->assertEquals(false, $idCard); + } + + public function testToJson() + { + $idCard = IdentityCard::make('142701198003124054'); + + $this->assertJson($idCard->toJson()); + } } \ No newline at end of file