1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Posted at

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

エラーは出なくなった。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?