title: Struggling to get Mink working with Behat
body: <p>I've been following this guide (and installed everything through composer): <a href="http://docs.behat.org/cookbook/behat_and_mink.html">http://docs.behat.org/cookbook/behat_and_mink.html</a> and am attempting to get Behat + Mink working but everytime I try and run bin/behat I get the following error:</p>
  
  <pre><code>PHP Fatal error:  Call to a member function getSession() on a non-object in vendor/behat/mink-extension/src/Behat/MinkExtension/Context/RawMinkContext.php on line 80
  </code></pre>
  
  <p>That line of code is:</p>
  
  <pre><code>return $this-&gt;getMink()-&gt;getSession($name);
  </code></pre>
  
  <p>So for some reason the mink attribute is empty but I've no idea why.</p>
  
  <p>My .feature file is exactly the same as the one in the guide, the FeatureContext class is also from the guide:</p>
  
  <pre><code>use Behat\Behat\Context\ClosuredContextInterface,
      Behat\Behat\Context\TranslatedContextInterface,
      Behat\Behat\Context\BehatContext,
      Behat\Behat\Exception\PendingException;
  use Behat\Gherkin\Node\PyStringNode,
      Behat\Gherkin\Node\TableNode;     
  
  use Behat\MinkExtension\Context\MinkContext;
  
  /**
   * Features context.
   */
  class FeatureContext extends MinkContext 
  {
  
  }
  </code></pre>
  
  <p>and my vendor/behat/mink/behat.yml file contains:</p>
  
  <pre><code>context:
    extensions:
      Behat\MinkExtension\Extension:
        base_url:  'http://en.wikipedia.org/'
        goutte:    ~
        selenium2: ~
  </code></pre>
  
  <p>I've also tried making my class extend BehatContext and then call useContext but that gives me the same error. Behat itself seems to work it's just anything with Mink produces that fatal error and I've no idea how to fix it.</p>