예제 #1
0
 public function testMainTrueUnlessDoesntPerformTasks()
 {
     $this->project->setProperty('unlessProperty', 'someValue');
     $this->target->setUnless('unlessProperty');
     $task = $this->getMock('Task');
     $task->expects($this->never())->method('perform');
     $this->target->addTask($task);
     $this->target->main();
 }