PopTest\Auth\AuthTest::testPasswordEncryptionOptions PHP Метод

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

    public function testPasswordEncryptionOptions()
    {
        $a = new Auth(new File(__DIR__ . '/../tmp/access.txt'), Auth::ENCRYPT_CRYPT_SHA_256, array('rounds' => 10000));
        $opts = $a->getEncryptionOptions();
        $this->assertEquals(10000, $opts['rounds']);
        $a->setEncryptionOptions(array('rounds' => 7500));
        $opts = $a->getEncryptionOptions();
        $this->assertEquals(7500, $opts['rounds']);
    }