コード例 #1
0
ファイル: score.php プロジェクト: xihewang/atoum
 public function testSetAtoumVersion()
 {
     $this->if($score = new testedClass())->then->object($score->setAtoumVersion($version = uniqid()))->isIdenticalTo($score)->string($score->getAtoumVersion())->isEqualTo($version)->exception(function () use($score) {
         $score->setAtoumVersion(uniqid());
     })->isInstanceOf('mageekguy\\atoum\\exceptions\\runtime')->hasMessage('Version of atoum is already set')->object($score->reset()->setAtoumVersion($version = rand(1, PHP_INT_MAX)))->isIdenticalTo($score)->string($score->getAtoumVersion())->isEqualTo((string) $version);
 }