Neos\Flow\Tests\Unit\Security\Cryptography\BCryptHashingStrategyTest::hashAndValidatePasswordWithNotMatchingPasswordFails PHP Метод

hashAndValidatePasswordWithNotMatchingPasswordFails() публичный Метод

    public function hashAndValidatePasswordWithNotMatchingPasswordFails()
    {
        $strategy = new BCryptHashingStrategy(10);
        $derivedKeyWithSalt = $strategy->hashPassword('password');
        $this->assertFalse($strategy->validatePassword('pass', $derivedKeyWithSalt), 'Different password should not match');
    }