php - How to set INCLUDE_PATH variable to PHPUnit libraries under Composer directory for Behat -
I have some tests under the directory of the features. But when I try to run to use PHPUnit now peer Is not available to install, if I use it at the end then my PHPUnit libraries are installed under to install the best way Which Any help would be appreciated! I ran in the same error using phpunit with Beahat, I removed it from the following Managed code to: Given that only a couple folders are removed from the root of the 'Bootstrap' folder project. Hope it helps. Generally, PHPUnit is installed globally (via composer) on my Dev and Test (CI server) machines, so I do not participate in any trouble on running the test. Also, to make my favorite IDEs (PhpStorm) work properly, I'm composing the project In the JSN, I include the library as a Dev's requirement. In the case of a project using the Beehat and it has been developed by some team that it is the best way to get involved in this project, so no developer can be disturbed by running the test. Behat I the following error:
$ ls behat.yml features $ PHP Warning Behat: load into the unknown on the modules 'memcache' first line 0 PHP Warning: (PHPUnit / Autoload.php): Such a file on Line 24 or $ HOME / Vertical / UMS / API / Trunk / Test / Functional / Features / Bootstrap / FeatureContext.php Directory: Stream failed to open PHP Fatal error: require_once (): Failed required to open 'PHPUnit / Autoload.php' (include_path = ':. / Usr / share / pear: / usr / share / php') $ HOME / workspace / UMS / since API /test/functional/features/bootstrap/FeatureContext.php on / line trunk / 24 /
$ sudo / -name PHPUnit /HOME/.com Posser / vendor / Phpunit / Phpunit / Phpunit /hom/kkanpojr/vender/phpunit/phpunit-mock -objekts / Phpunit /tmp/zendfrmevork-lkllk0/laibreri/zend/test/phpunit /tmp/zendfrmevork-lkllk0 / tests / Zend / Test / PHPUnit / usr / share / php / Zend / Test / PHPUnit / usr /share/php/Zend-2.0/Test/PHPUnit
include_path without changing
php.ini file and each
FeatureContext.php example
set_include_path (type class) Do not use the method
need_once __DIR __. '/ .. / .. / vendor / autoload.php'; Require_once __DIR __. '/ .. .. .. / vendor / phpunit / phpunit / src / framework / assert / functions.php';
Comments
Post a Comment