-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
behat 3 #13
base: master
Are you sure you want to change the base?
behat 3 #13
Conversation
The branch-alias in the composer.json needs to be bumped to 2.0.x-dev, because this is a BC break for the extension itself (which is fine, as long as we advocate it properly) |
|
||
namespace Behat\YiiExtension\Context; | ||
|
||
class YiiContext implements YiiAwareContextInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, we don't need this base class. Implementing the setter is easy enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to keep that class. Anybody who wants to integrate this context to his feature contexts should imo use hooks, i.e. BeforeScenario. Having the class ready for integration seems natural.
|
||
$extensions = $container->getParameter('behat.extension.classes'); | ||
// echo json_encode($container->getParameterBag()->all()); exit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be removed
|
||
$basePath = $container->getParameter('paths.base'); | ||
|
||
$extensions = $container->getParameter('extensions'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is used by the WUnitDriver registration, but the way it is done currently is wrong for MinkExtension 2. Registering a session is the wrong way. It should register a driver factory instead (look at the Symfony2Extension for an example)
@@ -76,7 +85,7 @@ public function load(array $config, ContainerBuilder $container) | |||
* | |||
* @param ArrayNodeDefinition $builder | |||
*/ | |||
public function getConfig(ArrayNodeDefinition $builder) | |||
public function configure(ArrayNodeDefinition $builder) | |||
{ | |||
$boolFilter = function ($v) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this bool filter is really weird to me
This extension is alos registering the WUnitDriver for Mink, which has been marked as unmaintained (the WUnit implementation itself looked unmaintained last time I checked, and not even compatible with composer properly). Are you using it or no ? |
Not using wunit at all, removed it from package + updated readme. |
Hi, I've updated this extension for the latest Behat. Please have a look if this is something you'd like to merge.