###前提・実現したいこと
phpunitをインストールして使えるようにしたいのですが、下記のマニュアルを見ても難しく、一通りやってみたのですが、やり方は正しいでしょうか。
https://phpunit.de/manual/current/ja/installation.html
インストールしたり、コマンドを打つ場所ってvagrant upしてssh接続した画面でいいんですかね?
###試したこと
①[vagrant@localhost ~]$ wget https://phar.phpunit.de/phpunit.phar
②[vagrant@localhost ~]$ chmod +x phpunit.phar
③[root@localhost ~]# mv phpunit.phar /usr/local/bin/phpunit
③の時に、mv: cannot move ‘phpunit.phar’ to ‘/usr/local/bin/phpunit’: Permission denied
上記のエラーが出たので、sudo su -で、rootにして、③を実行したら出来たので、戻って
④[vagrant@localhost ~]$ phpunit --version
PHPUnit 6.5.5 by Sebastian Bergmann and contributors.
上記の内容が出たのですが、ちゃんとインストールされてますでしょうか
###補足情報(言語/FW/ツール等のバージョンなど)
Windows上でVirtualBox+Vagrant+CentOSによる仮想環境
php 7.1.12
回答1件
あなたの回答
tips
プレビュー