示例#1
0
文件: cli.php 项目: xihewang/atoum
 public function testHandleEvent()
 {
     $this->if($field = new runner\php\version\cli())->and($score = new \mock\mageekguy\atoum\runner\score())->and($score->getMockController()->getPhpVersion = $phpVersion = uniqid())->and($runner = new atoum\runner())->and($runner->setScore($score))->then->boolean($field->handleEvent(atoum\runner::runStop, $runner))->isFalse()->variable($field->getVersion())->isNull()->boolean($field->handleEvent(atoum\runner::runStart, $runner))->isTrue()->string($field->getVersion())->isEqualTo($phpVersion);
 }