|
@@ 116-125 (lines=10) @@
|
| 113 |
|
* |
| 114 |
|
* @param ContainerBuilder $container |
| 115 |
|
*/ |
| 116 |
|
protected function loadScenarioForkingFeatureTester(ContainerBuilder $container, $variantTags) |
| 117 |
|
{ |
| 118 |
|
$definition = new Definition('Ciandt\Behat\PlaceholdersExtension\Tester\ScenarioBranchingFeatureTester', array( |
| 119 |
|
new Reference(TesterExtension::SPECIFICATION_TESTER_ID), |
| 120 |
|
$variantTags, |
| 121 |
|
new Reference(self::PLACEHOLDERS_REPOSITIORY_ID) |
| 122 |
|
)); |
| 123 |
|
$definition->addTag(TesterExtension::SPECIFICATION_TESTER_WRAPPER_TAG, array('priority' => 1000)); |
| 124 |
|
$container->setDefinition(self::VARIANTS_PREPROCESSOR_ID, $definition); |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
/** |
| 128 |
|
* Loads step tester. |
|
@@ 132-141 (lines=10) @@
|
| 129 |
|
* |
| 130 |
|
* @param ContainerBuilder $container |
| 131 |
|
*/ |
| 132 |
|
protected function loadStepTester(ContainerBuilder $container, $variantTags) |
| 133 |
|
{ |
| 134 |
|
$definition = new Definition('Ciandt\Behat\PlaceholdersExtension\Tester\PlaceholdersReplacer', array( |
| 135 |
|
new Reference(TesterExtension::STEP_TESTER_ID), |
| 136 |
|
$variantTags, |
| 137 |
|
new Reference(self::PLACEHOLDERS_REPOSITIORY_ID) |
| 138 |
|
)); |
| 139 |
|
$definition->addTag(TesterExtension::STEP_TESTER_WRAPPER_TAG); |
| 140 |
|
$container->setDefinition(self::PLACEHOLDERS_REPLACER_ID, $definition); |
| 141 |
|
} |
| 142 |
|
} |
| 143 |
|
|