Exemple #1
0
 /**
  * @param string $value
  * @param bool   $raw
  */
 protected function addRandomSequence($value, $raw = false)
 {
     if (null == $this->randomGenerator->getFirst()) {
         $this->randomGenerator->setFirst(new RandomGeneratorMock());
     }
     /** @var RandomGeneratorMock $mock */
     $mock = $this->randomGenerator->getFirst();
     $mock->add($value, $raw);
 }
 public function test_returns_first()
 {
     $generator = new FallbackRandomGenerator();
     $generator->setFirst($first = $this->getRandomGeneratorMock());
     $this->assertSame($first, $generator->getFirst());
 }