public function testMultipleAreDifferent()
 {
     $generator = new KVDutil_WachtwoordGenerator();
     $wachtwoorden = array();
     for ($i = 0; $i < 5; $i++) {
         $wachtwoorden[$i] = $generator->generate();
         if ($i > 0) {
             $this->assertNotEquals($wachtwoorden[$i], $wachtwoorden[$i - 1]);
         }
     }
 }
Exemple #2
0
<?php

require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '../vendor/autoload.php';
$wg = new KVDutil_WachtwoordGenerator();
echo $wg->generate() . "\n";