Files
yii/tests/framework/utils/CPasswordHelperTest.php
Alexander Makarov 906f722c04 Added test for #3707
2015-02-09 10:16:43 +03:00

11 lines
254 B
PHP

<?php
class CPasswordHelperTest extends CTestCase
{
public function testHashAndVerifyPassword()
{
$password = 'test123';
$hash = CPasswordHelper::hashPassword($password);
$this->assertTrue(CPasswordHelper::verifyPassword($password, $hash));
}
}