public function testProjectSetBackground() { $task = new PhingTask(); $project = m::mock('Project'); $project->shouldReceive('getProperty')->with('hipchat.background')->andReturn(Message::BACKGROUND_PURPLE)->once(); $task->setProject($project); $this->assertEquals($task->getBackground(), Message::BACKGROUND_PURPLE); }