Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
2
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

FuelPHPで、oil test したときに、「Uncaught exception Oil\Exception: PHPUnit does not appear to be installed.」と言われた時にすること

FuelPHP で、oil test したら、install しているはずの phpunit が見つからないと出た。

$ oil test
Uncaught exception Oil\Exception: PHPUnit does not appear to be installed.

    Please visit http://phpunit.de and install.
Callstack:
#0 /Users/toku/MyDevelop/fuelphp/scheduler/oil(57): Oil\Command::init(Array)
#1 {main}

ちなみに、インストールしたのは、MacPorts で。

sudo port install php55-unit

と、言うことで Comporser。

comporser.json に、phpunit を追加。

    "require": {
        "php": ">=5.3.3",
        "monolog/monolog": "1.5.*",
        "fuelphp/upload": "2.0.1",
        "phpunit/phpunit": "3.7.*"
    },

追加した後に、comporser update して完了。

php comporser.phar update
$ oil test

エラーは出なくなった。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
2
Help us understand the problem. What are the problem?