public function testTokens() { $step = new StepNode('When', 'Some "<text>" in <string>'); $scenario = new ScenarioNode(); $scenario->addStep($step); $feature = new FeatureNode(); $feature->addScenario($scenario); $feature->freeze(); $step1 = $step->createExampleRowStep(array('text' => 'change')); $this->assertNotSame($step, $step1); $this->assertEquals('Some "change" in <string>', $step1->getText()); $this->assertEquals('Some "<text>" in <string>', $step1->getCleanText()); $step2 = $step->createExampleRowStep(array('text' => 'change', 'string' => 'browser')); $this->assertNotSame($step, $step2); $this->assertEquals('Some "change" in browser', $step2->getText()); $this->assertEquals('Some "<text>" in <string>', $step2->getCleanText()); }
public function freeze() { $this->featureNode->freeze(); }