Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated README example for Behat 2.4.

  • Loading branch information...
commit dbfc98bf64af73b1939200344082d081ea31c6cf 1 parent e9d8684
@jakzal jakzal authored
Showing with 5 additions and 14 deletions.
  1. +5 −14 README.md
View
19 README.md
@@ -16,26 +16,17 @@ that:
namespace Acme\DemoBundle\Features\Context;
-use Behat\BehatBundle\Context\BehatContext,
- Behat\BehatBundle\Context\MinkContext;
-use Behat\Behat\Context\ClosuredContextInterface,
- Behat\Behat\Context\TranslatedContextInterface,
- Behat\Behat\Exception\PendingException;
-use Behat\Gherkin\Node\PyStringNode,
- Behat\Gherkin\Node\TableNode;
+use Behat\Behat\Context\BehatContext;
+use Behat\CommonContexts\SymfonyMailerContext;
/**
* Feature context.
*/
-class FeatureContext extends MinkContext
+class FeatureContext extends BehatContext
{
- public function __construct($kernel)
+ public function __construct()
{
- $this->useContext('symfony_extra',
- new \Behat\CommonContexts\SymfonyMailerContext($kernel)
- );
-
- parent::__construct($kernel);
+ $this->useContext('symfony_extra', new SymfonyMailerContext());
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.