Skip to content

Commit

Permalink
Merge pull request #7 from ofcold/master
Browse files Browse the repository at this point in the history
Master
  • Loading branch information
lilianjin authored May 27, 2018
2 parents 23dc322 + 8dc3214 commit 2581e1f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tests/IdentityCardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit 2581e1f

Please sign in to comment.