2014-03-05 71 views
0

通過.phar安裝Codeception效果很好,但我決定將所有依賴關係移至作曲家。當我嘗試引導代碼時,這是我的錯誤:Codeception引導失敗

(dev) stagl [/var/www/dev] (master) > vendor/bin/codecept bootstrap 

Initializing Codeception in /var/www/dev 

File codeception.yml created <- global configuration 
tests/unit created <- unit tests 
tests/functional created <- functional tests 
tests/acceptance created <- acceptance tests 
tests/unit.suite.yml written <- unit tests suite configuration 
tests/functional.suite.yml written <- functional tests suite configuration 
tests/acceptance.suite.yml written <- acceptance tests suite configuration 
tests/_bootstrap.php written <- global bootstrap file 
Building initial Guy classes 
Building Guy classes for suites: unit, functional, acceptance 
CodeGuy includes modules: CodeHelper 
CodeGuy.php generated successfully. 1 methods added 
TestGuy includes modules: Filesystem, TestHelper 
TestGuy.php generated successfully. 12 methods added 
PHP Notice: Use of undefined constant CURLOPT_CERTINFO - assumed 'CURLOPT_CERTINFO' in /var/www/dev/vendor/codeception/codeception/src/Codeception/Configuration.php on line 189 
PHP Stack trace: 
PHP 1. {main}() /var/www/dev/vendor/codeception/codeception/codecept:0 
PHP 2. Symfony\Component\Console\Application->run() /var/www/dev/vendor/codeception/codeception/codecept:29 
PHP 3. Symfony\Component\Console\Application->doRun() /var/www/dev/vendor/symfony/console/Symfony/Component/Console/Application.php:121 
PHP 4. Symfony\Component\Console\Application->doRunCommand() /var/www/dev/vendor/symfony/console/Symfony/Component/Console/Application.php:191 
PHP 5. Symfony\Component\Console\Command\Command->run() /var/www/dev/vendor/symfony/console/Symfony/Component/Console/Application.php:892 
PHP 6. Codeception\Command\Bootstrap->execute() /var/www/dev/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:241 
PHP 7. Symfony\Component\Console\Command\Command->run() /var/www/dev/vendor/codeception/codeception/src/Codeception/Command/Bootstrap.php:80 
PHP 8. Codeception\Command\Build->execute() /var/www/dev/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:241 
PHP 9. Codeception\Configuration::modules() /var/www/dev/vendor/codeception/codeception/src/Codeception/Command/Build.php:77 
WebGuy includes modules: PhpBrowser, WebHelper 
WebGuy.php generated successfully. 47 methods added 

Bootstrap is done. Check out /var/www/dev/tests directory 

我覺得奇怪的是,這與phar的工作,但不是這樣嗎?我,一定會在我的PHP-CLI設置捲曲啓用:

(dev) stagl [/var/www/dev] (master) > php -m 
[PHP Modules] 
apc 
bz2 
Core 
ctype 
curl 

回答

0

事實證明,Codeception不會使用Zend Server的一箇舊版本的正常工作。我卸載了這個和php5.4的新版本,現在正在運行。