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