teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

修正

2017/12/26 09:01

投稿

r4325t2
r4325t2

スコア14

title CHANGED
File without changes
body CHANGED
@@ -1,9 +1,21 @@
1
1
  ###前提・実現したいこと
2
- phpunitをインストールして使えるようにしたいのですが、下記のマニュアルを見ても難しく、一通りやってみたのですが使えないで
2
+ phpunitをインストールして使えるようにしたいのですが、下記のマニュアルを見ても難しく、一通りやってみたのですが、やり方は正しいでしょうか
3
3
  https://phpunit.de/manual/current/ja/installation.html
4
4
  インストールしたり、コマンドを打つ場所ってvagrant upしてssh接続した画面でいいんですかね?
5
- 手順を教えて頂けると幸いです。
6
5
 
6
+ ###試したこと
7
+ ①[vagrant@localhost ~]$ wget https://phar.phpunit.de/phpunit.phar
8
+
9
+ ②[vagrant@localhost ~]$ chmod +x phpunit.phar
10
+
11
+ ③[root@localhost ~]# mv phpunit.phar /usr/local/bin/phpunit
12
+ ③の時に、mv: cannot move ‘phpunit.phar’ to ‘/usr/local/bin/phpunit’: Permission denied
13
+ 上記のエラーが出たので、sudo su -で、rootにして、③を実行したら出来たので、戻って
14
+
15
+ ④[vagrant@localhost ~]$ phpunit --version
16
+ PHPUnit 6.5.5 by Sebastian Bergmann and contributors.
17
+ 上記の内容が出たのですが、ちゃんとインストールされてますでしょうか
18
+
7
19
  ###補足情報(言語/FW/ツール等のバージョンなど)
8
20
  Windows上でVirtualBox+Vagrant+CentOSによる仮想環境
9
21
  php 7.1.12