minkphp / MinkBundle

Mink library integration bundle for Symfony2
MIT License
60 stars 18 forks source link

Bad config or bug in deps managment ? #31

Closed cedriclombardot closed 12 years ago

cedriclombardot commented 12 years ago

Hi,

I have a strange problem, i have the exception :

Fatal error: Class 'Selenium\Client' not found in .../vendor/behat/mink/src/Behat/Mink/Behat/Context/MinkContext.php on line 214

Normal i have not load Selenium :

php app/console -e=test cont:deb  | grep mink
behat.mink                                    prototype Behat\Mink\Mink
behat.mink.goutte                             prototype Goutte\Client
behat.mink.selector.css                       container Behat\Mink\Selector\CssSelector
behat.mink.selector.named                     container Behat\Mink\Selector\NamedSelector
behat.mink.selectors_handler                  container Behat\Mink\Selector\SelectorsHandler
behat.mink.session.goutte                     prototype Behat\Mink\Session
behat.mink.session.symfony                    prototype Behat\Mink\Session

And my config_test.yml :

mink:
    base_url:   http://myapp.test/app_test.php
    default_session:  goutte
    goutte:           ~

And my context :

<?php

namespace AAA\CoreBundle\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 PHPUnit_Framework_ExpectationFailedException as AssertException;

/**
 * Feature context.
 */
class FeatureContext extends \Behat\Mink\Behat\Context\MinkContext
{
}
cedriclombardot commented 12 years ago

Oh my bad found

class FeatureContext extends MinkContext and not \Behat\Mink\Behat\Context\MinkContext