質問編集履歴

1

修正

2017/12/26 09:01

投稿

r4325t2
r4325t2

スコア14

test CHANGED
File without changes
test CHANGED
@@ -1,12 +1,36 @@
1
1
  ###前提・実現したいこと
2
2
 
3
- phpunitをインストールして使えるようにしたいのですが、下記のマニュアルを見ても難しく、一通りやってみたのですが使えないで
3
+ phpunitをインストールして使えるようにしたいのですが、下記のマニュアルを見ても難しく、一通りやってみたのですが、やり方は正しいでしょうか
4
4
 
5
5
  https://phpunit.de/manual/current/ja/installation.html
6
6
 
7
7
  インストールしたり、コマンドを打つ場所ってvagrant upしてssh接続した画面でいいんですかね?
8
8
 
9
+
10
+
9
- 手順を教えて頂ける幸いです。
11
+ ###試したこ
12
+
13
+ ①[vagrant@localhost ~]$ wget https://phar.phpunit.de/phpunit.phar
14
+
15
+
16
+
17
+ ②[vagrant@localhost ~]$ chmod +x phpunit.phar
18
+
19
+
20
+
21
+ ③[root@localhost ~]# mv phpunit.phar /usr/local/bin/phpunit
22
+
23
+ ③の時に、mv: cannot move ‘phpunit.phar’ to ‘/usr/local/bin/phpunit’: Permission denied
24
+
25
+ 上記のエラーが出たので、sudo su -で、rootにして、③を実行したら出来たので、戻って
26
+
27
+
28
+
29
+ ④[vagrant@localhost ~]$ phpunit --version
30
+
31
+ PHPUnit 6.5.5 by Sebastian Bergmann and contributors.
32
+
33
+ 上記の内容が出たのですが、ちゃんとインストールされてますでしょうか
10
34
 
11
35
 
12
36