PHP Classes

File: tests/PasswdqcTest.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   PHP Password Strength Check   tests/PasswdqcTest.php   Download  
File: tests/PasswdqcTest.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Password Strength Check
Check the strength of a new password that changed
Author: By
Last change:
Date: 3 years ago
Size: 513 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);
namespace
ParagonIE\Passwdqc\Tests;

use
ParagonIE\Passwdqc\Passwdqc;
use
PHPUnit\Framework\TestCase;

/**
 * Class PasswdqcTest
 * @package ParagonIE\Passwdqc\Tests
 */
class PasswdqcTest extends TestCase
{

    public function
testCheck()
    {
       
$passwdqc = new Passwdqc();

       
$this->assertTrue(
           
$passwdqc->check('o/IiJ/OI/110dA6KMN8m10pk7ff0UDR0rcJIAYhY')
        );

       
$this->assertFalse(
           
$passwdqc->check('123456')
        );
    }
}