Skip to content

Commit 436204a

Browse files
committed
Add scenarios for importing PHP files
1 parent 408bd4b commit 436204a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

features/importing_files.feature

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,26 @@ Feature: Importing files
7171
"""
7272
When I run Behat
7373
Then it should pass
74+
75+
Scenario: Importing a service from a PHP 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.php
88+
"""
89+
And a config file "features/bootstrap/config/services.php" containing:
90+
"""
91+
<?php
92+
93+
$container->setParameter('foobar', 'shit happens');
94+
"""
95+
When I run Behat
96+
Then it should pass

0 commit comments

Comments
 (0)