Esempio n. 1
0
 /**
  * Randomly generating a character should only produce characters from the
  * provided character set.
  */
 public function testRandomCharacterFromCharacterSet()
 {
     // Generate a random character from a character set
     $charset = 'abdefg';
     $random_char = Fluffer::fluffChar($charset);
     // Make sure the generated character is from the character set
     $this->assertStringOnlyContainsCharset($random_char, $charset);
 }