Example #1
0
 public function testStartStep()
 {
     $testStartStep = 'start_step';
     $startStep = new Step();
     $startStep->setName($testStartStep);
     $stepManager = new StepManager(array($startStep));
     $this->assertNull($stepManager->getStartStep());
     $this->assertFalse($stepManager->hasStartStep());
     $stepManager->setStartStepName($testStartStep);
     $this->assertEquals($startStep, $stepManager->getStartStep());
     $this->assertTrue($stepManager->hasStartStep());
 }