Skip to content

Commit

Permalink
add testCheck method.
Browse files Browse the repository at this point in the history
  • Loading branch information
lilianjin committed Apr 9, 2021
1 parent 85a90fc commit 048b785
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/IdentityCardTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ public function testMakeFalse()
$this->assertEquals(false, !is_a($this->idCard, IdentityCard::class));
}

public function testCheck()
{
$this->assertEquals(true, IdentityCard::validate('142701198003124054'));
}

public function testArea()
{
$this->assertEquals('山西省 运城地区 运城市', $this->idCard->getArea());
Expand Down

0 comments on commit 048b785

Please sign in to comment.