Help us understand the problem. What is going on with this article?

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

More than 5 years have passed since last update.

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