Example #1
0
 public function testSetAtoumPath()
 {
     $this->if($score = new testedClass())->then->object($score->setAtoumPath($path = uniqid()))->isIdenticalTo($score)->string($score->getAtoumPath())->isEqualTo($path)->exception(function () use($score) {
         $score->setAtoumPath(uniqid());
     })->isInstanceOf('mageekguy\\atoum\\exceptions\\runtime')->hasMessage('Path of atoum is already set')->object($score->reset()->setAtoumPath($path = rand(1, PHP_INT_MAX)))->isIdenticalTo($score)->string($score->getAtoumPath())->isEqualTo((string) $path);
 }