title: Behat - Context class not found.
body: <p>This is my directory structure:</p>
  
  <pre><code>composer.json
  composer.phar
  vendor/
      bin/
          behat
  tests/
      functional/
          behat.yml
          features/
              registration.feature
              bootstrap/
                  FeatureContext.php
  </code></pre>
  
  <p>I did:</p>
  
  <pre><code>cd tests/functional
  ../../vendor/bin/behat --init
  </code></pre>
  
  <p>Which created basic structure for me. This is inside behat.yml:</p>
  
  <pre><code>default:
    paths:
      features: '%behat.paths.base%/features'
      bootstrap:  '%behat.paths.base%/features/bootstrap'
  </code></pre>
  
  <p>Now I try to run BDD tests like this:</p>
  
  <pre><code>vendor/bin/behat -c tests/functional/behat.yml
  </code></pre>
  
  <p>And I get:</p>
  
  <pre><code>  [RuntimeException]                                                       
    Context class not found.                                                 
    Maybe you have provided wrong or no `bootstrap` path in your behat.yml:  
    http://docs.behat.org/guides/7.config.html#paths                         
  
  
  
  behat [--init] [-f|--format="..."] [--out="..."] [--lang="..."] [--[no-]ansi] [--[no-]time] [--[no-]paths] [--[no-]snippets] [--[no-]snippets-paths] [--[no-]multiline] [--[no-]expand] [--story-syntax] [-d|--definitions="..."] [--name="..."] [--tags="..."] [--cache="..."] [--strict] [--dry-run] [--rerun="..."] [--append-snippets] [--append-to="..."] [features]
  </code></pre>
  
  <p>Any idea what is the problem?</p>
  
  <p>I installed Behat via Composer. This is my composer.json:</p>
  
  <pre><code>{
      "name": "hello",
      "description": "Hello World",
      "minimum-stability": "dev",
      "require": {
          "php": "&gt;=5.3",
          "zendframework/zendframework": "2.1.4",
          "doctrine/common": "dev-master#d7987c96675e153638729383577090feed9854f1"
      },
      "require-dev": {
          "phpunit/phpunit": "3.7.14",
          "behat/behat": "2.4.*@stable"
      }
  }
  </code></pre>
  
  <p>Which I installed with:</p>
  
  <pre><code>php composer.phar install --dev -o
  </code></pre>