Exemplo n.º 1
0
 public function testSetVersion()
 {
     $this->if($builder = new testedClass(uniqid()))->then->object($builder->setVersion($tag = uniqid()))->isIdenticalTo($builder)->string($builder->getVersion())->isIdenticalTo($tag)->object($builder->setVersion($tag = rand(1, PHP_INT_MAX)))->isIdenticalTo($builder)->string($builder->getVersion())->isIdenticalTo((string) $tag);
 }