Esempio n. 1
0
 /**
  * Randomly generating strings should be of the correct length and only
  * contain characters from the specified character set.
  */
 public function testRandomStringOfLengthAndCharacterSet()
 {
     // Generate a random string of a small character set
     $charset = '123';
     $random_string = Fluffer::fluffString(10, $charset);
     // Make sure the generated string only contains the right characters
     $this->assertStringOnlyContainsCharset($random_string, $charset);
 }