public function testSteps()
 {
     $scenario = new ScenarioNode();
     $this->assertEquals(0, count($scenario->getSteps()));
     $this->assertFalse($scenario->hasSteps());
     $scenario->addStep(new StepNode('Given', 'Something'));
     $this->assertEquals(1, count($scenario->getSteps()));
     $this->assertTrue($scenario->hasSteps());
     $scenario->addStep(new StepNode('Then', 'Do'));
     $this->assertEquals(2, count($scenario->getSteps()));
     $this->assertTrue($scenario->hasSteps());
     $steps = $scenario->getSteps();
     $this->assertInstanceOf('Behat\\Gherkin\\Node\\StepNode', $steps[0]);
     $this->assertEquals('Given', $steps[0]->getType());
     $this->assertEquals('Something', $steps[0]->getText());
     $this->assertSame($scenario, $steps[0]->getParent());
     $this->assertEquals('Then', $steps[1]->getType());
     $this->assertEquals('Do', $steps[1]->getText());
     $this->assertSame($scenario, $steps[1]->getParent());
 }