Skip to content

Commit 8029957

Browse files
authored
Merge pull request #50 from DmitryTronin/docker
Addressing issues/47
2 parents 770d472 + 7e60fc3 commit 8029957

File tree

9 files changed

+244
-207
lines changed

9 files changed

+244
-207
lines changed

.idea/php-docker-settings.xml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php.xml

Lines changed: 201 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

workshop/08_Testing/01_Behat_Testing/01_Initializing_Behat.php

Lines changed: 0 additions & 27 deletions
This file was deleted.

workshop/08_Testing/01_Behat_Testing/02_Writing_Behat_Tests.php

Lines changed: 0 additions & 146 deletions
This file was deleted.

workshop/08_Testing/01_Behat_Testing/03_Running_Behat_Tests.php

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Behat testing
2+
3+
The project has a simple Behat testing scenario included, you can find it at `workshop/08_Testing/Behat/features/my_feature.feature`
4+
5+
---
6+
To be able to use it please:
7+
1. Select **PHP Behat** Interpreter at _Settings(Preferences) | Languages & Frameworks | PHP_
8+
2. Open _Settings(Preferences) | Languages & Frameworks | PHP | Test Frameworks_ and make sure you have a remote Behat configuration called **PHP Behat**.
9+
Open it and check that the path to Behat executable is `/opt/project/workshop/99_Miscellaneous/libs/behat-3.3.phar`
10+
---
11+
After this you can just right click `workshop/08_Testing/Behat/features/my_feature.feature` and select "Run my_feature.feature (Behat)"
12+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
class FeatureContext implements \Behat\Behat\Context\Context
4+
{
5+
/**
6+
* @Given some circumstances
7+
*/
8+
public function passes()
9+
{
10+
return true;
11+
}
12+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Feature: My feature
2+
3+
Scenario: First scenario
4+
Given some circumstances
2.18 MB
Binary file not shown.

0 commit comments

Comments
 (0)