Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .idea/php-docker-settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

208 changes: 201 additions & 7 deletions .idea/php.xml

Large diffs are not rendered by default.

27 changes: 0 additions & 27 deletions workshop/08_Testing/01_Behat_Testing/01_Initializing_Behat.php

This file was deleted.

146 changes: 0 additions & 146 deletions workshop/08_Testing/01_Behat_Testing/02_Writing_Behat_Tests.php

This file was deleted.

27 changes: 0 additions & 27 deletions workshop/08_Testing/01_Behat_Testing/03_Running_Behat_Tests.php

This file was deleted.

12 changes: 12 additions & 0 deletions workshop/08_Testing/Behat/Behat_Testing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Behat testing

The project has a simple Behat testing scenario included, you can find it at `workshop/08_Testing/Behat/features/my_feature.feature`

---
To be able to use it please:
1. Select **PHP Behat** Interpreter at _Settings(Preferences) | Languages & Frameworks | PHP_
2. Open _Settings(Preferences) | Languages & Frameworks | PHP | Test Frameworks_ and make sure you have a remote Behat configuration called **PHP Behat**.
Open it and check that the path to Behat executable is `/opt/project/workshop/99_Miscellaneous/libs/behat-3.3.phar`
---
After this you can just right click `workshop/08_Testing/Behat/features/my_feature.feature` and select "Run my_feature.feature (Behat)"

12 changes: 12 additions & 0 deletions workshop/08_Testing/Behat/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

class FeatureContext implements \Behat\Behat\Context\Context
{
/**
* @Given some circumstances
*/
public function passes()
{
return true;
}
}
4 changes: 4 additions & 0 deletions workshop/08_Testing/Behat/features/my_feature.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Feature: My feature

Scenario: First scenario
Given some circumstances
Binary file added workshop/99_Miscellaneous/libs/behat-3.3.phar
Binary file not shown.