Skip to content

Commit c5c07dc

Browse files
author
Frederic Dewinne
committed
add behat setup
1 parent 3a4332a commit c5c07dc

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

behat.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
default:
2+
suites:
3+
default:
4+
contexts:
5+
- Continuous\Features\TaskContext

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
],
1414
"require-dev": {
1515
"phpunit/phpunit": "^4.6",
16-
"squizlabs/php_codesniffer": "^2.3"
16+
"squizlabs/php_codesniffer": "^2.3",
17+
"behat/behat": "^3.0"
1718
},
1819
"require": {
1920
"phing/phing": "~2.9"
@@ -23,4 +24,4 @@
2324
"Continuous\\": "src/"
2425
}
2526
}
26-
}
27+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
namespace Continuous\Features;
4+
5+
use Behat\Behat\Context\Context;
6+
use Behat\Behat\Context\SnippetAcceptingContext;
7+
use Behat\Gherkin\Node\PyStringNode;
8+
use Behat\Gherkin\Node\TableNode;
9+
10+
/**
11+
* Defines application features from the specific context.
12+
*/
13+
class TaskContext implements Context, SnippetAcceptingContext
14+
{
15+
/**
16+
* Initializes context.
17+
*
18+
* Every scenario gets its own context instance.
19+
* You can also pass arbitrary arguments to the
20+
* context constructor through behat.yml.
21+
*/
22+
public function __construct()
23+
{
24+
}
25+
}

0 commit comments

Comments
 (0)