public function testGenerateNativelyWithAllowCharsAndDisallowChars()
 {
     for ($i = 1; $i < 200; ++$i) {
         $this->_stringGenerator->allowChars('ABCDEFG')->disallowChars('AB');
         $string1 = $this->_stringGenerator->generateNatively(100);
         $string2 = $this->_stringGenerator->generateNatively(100);
         $this->assertSame(100, strlen($string1));
         $this->assertNotEquals($string1, $string2);
         $this->assertRegExp('/^[C-G]{100}$/', $string1);
     }
 }
 /**
  * Use the string generator to create a random string with a length set by the LENGTH constant
  *
  * @return string
  */
 private function _generateCode()
 {
     return $this->_stringGenerator->setPattern('/^[A-HJ-KM-NP-Z2-9]+$/')->generate(self::LENGTH);
 }