Example #1
0
 function testIsAllowed()
 {
     $password = new Bcrypt();
     // verify that passwords containing parts of blocked passwords are still allowed
     $this->assertEquals(true, $password->isAllowed('abc123hej'));
     $this->assertEquals(true, $password->isAllowed('hejabc123'));
     // verify that an unlisted password is allowed
     $this->assertEquals(true, $password->isAllowed('h4rdpassw0rd'));
 }