public function testAddStage() { $stage = $this->getMockForAbstractClass('Webcreate\\Conveyor\\Stage\\AbstractStage'); $this->stageManager->addStage('test.stage', $stage); $result = $this->stageManager->getStages(); $this->assertEquals(array('test.stage' => array('name' => 'test.stage', 'stage' => $stage)), $result); }