protected function setUp()
 {
     $this->letterGenerator = ElementsGenerator::fromArray(['A', 'B', 'C']);
     $this->cipherGenerator = ElementsGenerator::fromArray([0, 1, 2]);
     $this->smallIntegerGenerator = new ChooseGenerator(0, 100);
     $this->size = 10;
     $this->rand = 'rand';
 }
Пример #2
0
 /**
  * @expectedException DomainException
  */
 public function testExceptionWhenTryingToShrinkValuesOutsideOfTheDomain()
 {
     $generator = ElementsGenerator::fromArray(['A', 1]);
     $generator->shrink(GeneratedValue::fromJustValue(2));
 }