public function testEntropy() { $password = '******'; $matches = DigitMatch::match($password); $this->assertEquals(log(pow(10, 3), 2), $matches[0]->getEntropy()); }
/** * Match occurences of 3 or more digits in a password * * @copydoc Match::match() */ public static function match($password, array $userInputs = array()) { return ZxcvbnDigitMatch::match($password, $userInputs); }