public function testMainFalseIfDoesntPerformTasks() { $this->project->setProperty('ifProperty', null); $this->target->setIf('ifProperty'); $task = $this->getMock('Task'); $task->expects($this->never())->method('perform'); $this->target->addTask($task); $this->target->main(); }