title: How to set INCLUDE_PATH variable to PHPUnit libraries under Composer directory for Behat
body: <p>I have some test under features directory. But when I try to run <code>behat</code> I get the following error:</p>
  
  <pre><code>$ ls
  behat.yml  features
  
  $ behat
  PHP Warning:  Module 'memcache' already loaded in Unknown on line 0
  PHP Warning:  require_once(PHPUnit/Autoload.php): failed to open stream: No such file or directory in $HOME/workspace/ums/api/trunk/tests/functional/features/bootstrap/FeatureContext.php on line 24
  PHP Fatal error:  require_once(): Failed opening required 'PHPUnit/Autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in $HOME/workspace/ums/api/trunk/tests/functional/features/bootstrap/FeatureContext.php on line 24
  </code></pre>
  
  <p>Since PHPUnit is no longer available to install using PEAR, I finally use <a href="https://getcomposer.org/" rel="nofollow">Composer</a>. So have my PHPUnit libraries installed under </p>
  
  <pre><code>$ sudo find / -name  PHPUnit
  /HOME/.composer/vendor/phpunit/phpunit/PHPUnit
  /HOME/.composer/vendor/phpunit/phpunit-mock-objects/PHPUnit
  /tmp/ZendFramework-1.11.0/library/Zend/Test/PHPUnit
  /tmp/ZendFramework-1.11.0/tests/Zend/Test/PHPUnit
  /usr/share/php/Zend/Test/PHPUnit
  /usr/share/php/Zend-2.0/Test/PHPUnit
  </code></pre>
  
  <p>Which is the best way to set <code>include_path</code> without changing <code>php.ini</code> file and not use <code>set_include_path()</code> method in each <code>FeatureContext.php</code> example type class ?</p>
  
  <p>Any help would be appreciated! </p>