Skip to content

Commit

Permalink
Update HaveIBeenPwned range model unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Aug 15, 2018
1 parent 77eba3f commit 7c8bfa5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Tests/Model/HaveIBeenPwnedRangeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,15 @@ public function testConstruct() {
*/
public function testParse() {

$obj = HaveIBeenPwnedRange::parse("0018A45C4D1DEF81644B54AB7F969B88D65:1");
$obj0 = HaveIBeenPwnedRange::parse("0018A45C4D1DEF81644B54AB7F969B88D65");

$this->assertEquals(1, $obj->getCount());
$this->assertEquals("0018A45C4D1DEF81644B54AB7F969B88D65", $obj->getHash());
$this->assertEquals(0, $obj0->getCount());
$this->assertNull($obj0->getHash());

$obj9 = HaveIBeenPwnedRange::parse("0018A45C4D1DEF81644B54AB7F969B88D65:1");

$this->assertEquals(1, $obj9->getCount());
$this->assertEquals("0018A45C4D1DEF81644B54AB7F969B88D65", $obj9->getHash());
}

/**
Expand Down

0 comments on commit 7c8bfa5

Please sign in to comment.