示例#1
0
 public function testProjectSetFrom()
 {
     $task = new PhingTask();
     $project = m::mock('Project');
     $project->shouldReceive('getProperty')->with('hipchat.from')->andReturn('Hubot')->once();
     $task->setProject($project);
     $this->assertEquals($task->getFrom(), 'Hubot');
 }