public function testEntropy() { $password = '******'; $matches = DateMatch::match($password); $this->assertSame(log(119 * 12 * 31, 2), $matches[0]->getEntropy()); }
/** * Match occurences of dates in a password * * @copydoc Match::match() */ public static function match($password, array $userInputs = array()) { return ZxcvbnDateMatch::match($password, $userInputs); }