File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed
Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,31 @@ Feature: Importing files
7272 When I run Behat
7373 Then it should pass
7474
75+ Scenario : Importing a service from a XML file
76+ Given a Behat configuration containing:
77+ """
78+ default:
79+ suites:
80+ default:
81+ contexts:
82+ - FeatureContext:
83+ - "%foobar%"
84+ extensions:
85+ FriendsOfBehat\ServiceContainerExtension:
86+ imports:
87+ - features/bootstrap/config/services.xml
88+ """
89+ And a config file "features/bootstrap/config/services.xml" containing:
90+ """
91+ <container xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://symfony.com/schema/dic/services">
92+ <parameters>
93+ <parameter key="foobar">shit happens</parameter>
94+ </parameters>
95+ </container>
96+ """
97+ When I run Behat
98+ Then it should pass
99+
75100 Scenario : Importing a service from a PHP file
76101 Given a Behat configuration containing:
77102 """
@@ -89,7 +114,7 @@ Feature: Importing files
89114 And a config file "features/bootstrap/config/services.php" containing:
90115 """
91116 <?php
92-
117+
93118 $container->setParameter('foobar', 'shit happens');
94119 """
95120 When I run Behat
You can’t perform that action at this time.
0 commit comments