/**
* testPassword
*
* @since 2.6.0
*
* @param string $password
* @param array $hashArray
* @param integer $expect
*
* @dataProvider providerPassword
*/
public function testPassword($password = null, $hashArray = [], $expect = null)
{
/* setup */
$validator = new Validator\Password();
/* actual */
$actual = $validator->validate($password, function_exists('password_verify') ? $hashArray[0] : $hashArray[1]);
/* compare */
$this->assertEquals($expect, $actual);
}