@@ -21,82 +21,82 @@ public function tearDown(){
21
21
}
22
22
23
23
public function test_verbose () {
24
- $ this ->bs_local ->add_args ('v ' );
24
+ $ this ->bs_local ->add_args ('- v ' );
25
25
$ this ->assertContains ('-v ' ,$ this ->bs_local ->command ());
26
26
}
27
27
28
28
public function test_set_folder () {
29
- $ this ->bs_local ->add_args ('f ' , "/ " );
29
+ $ this ->bs_local ->add_args ('- f ' , "/ " );
30
30
$ this ->assertContains ('-f ' ,$ this ->bs_local ->command ());
31
31
$ this ->assertContains ('/ ' ,$ this ->bs_local ->command ());
32
32
}
33
33
34
34
public function test_enable_force () {
35
- $ this ->bs_local ->add_args ("force " );
35
+ $ this ->bs_local ->add_args ("- force " );
36
36
}
37
37
38
38
public function test_set_local_identifier () {
39
- $ this ->bs_local ->add_args ("localIdentifier " , "randomString " );
39
+ $ this ->bs_local ->add_args ("- localIdentifier " , "randomString " );
40
40
$ this ->assertContains ('-localIdentifier randomString ' ,$ this ->bs_local ->command ());
41
41
}
42
42
43
43
public function test_enable_only () {
44
- $ this ->bs_local ->add_args ("only " );
44
+ $ this ->bs_local ->add_args ("- only " );
45
45
$ this ->assertContains ('-only ' ,$ this ->bs_local ->command ());
46
46
}
47
47
48
48
public function test_enable_only_automate () {
49
- $ this ->bs_local ->add_args ("onlyAutomate " );
49
+ $ this ->bs_local ->add_args ("- onlyAutomate " );
50
50
$ this ->assertContains ('-onlyAutomate ' , $ this ->bs_local ->command ());
51
51
}
52
52
53
53
public function test_enable_force_local () {
54
- $ this ->bs_local ->add_args ("forcelocal " );
54
+ $ this ->bs_local ->add_args ("- forcelocal " );
55
55
$ this ->assertContains ('-forcelocal ' ,$ this ->bs_local ->command ());
56
56
}
57
57
58
58
public function test_set_proxy () {
59
- $ this ->bs_local ->add_args ("proxyHost " , "localhost " );
60
- $ this ->bs_local ->add_args ("proxyPort " , 8080 );
61
- $ this ->bs_local ->add_args ("proxyUser " , "user " );
62
- $ this ->bs_local ->add_args ("proxyPass " , "pass " );
59
+ $ this ->bs_local ->add_args ("- proxyHost " , "localhost " );
60
+ $ this ->bs_local ->add_args ("- proxyPort " , 8080 );
61
+ $ this ->bs_local ->add_args ("- proxyUser " , "user " );
62
+ $ this ->bs_local ->add_args ("- proxyPass " , "pass " );
63
63
$ this ->assertContains ('-proxyHost localhost -proxyPort 8080 -proxyUser user -proxyPass pass ' ,$ this ->bs_local ->command ());
64
64
}
65
65
66
66
public function test_enable_force_proxy () {
67
- $ this ->bs_local ->add_args ("forceproxy " );
67
+ $ this ->bs_local ->add_args ("- forceproxy " );
68
68
$ this ->assertContains ('-forceproxy ' ,$ this ->bs_local ->command ());
69
69
}
70
70
71
71
72
72
public function test_hosts () {
73
- $ this ->bs_local ->add_args ("hosts " , "localhost,8080,0 " );
73
+ $ this ->bs_local ->add_args ("- hosts " , "localhost,8080,0 " );
74
74
$ this ->assertContains ('localhost,8080,0 ' ,$ this ->bs_local ->command ());
75
75
}
76
76
77
77
public function test_isRunning () {
78
78
$ this ->assertFalse ($ this ->bs_local ->isRunning ());
79
- $ this ->bs_local ->start (array ('v ' => true ));
79
+ $ this ->bs_local ->start (array ('- v ' => true ));
80
80
$ this ->assertTrue ($ this ->bs_local ->isRunning ());
81
81
$ this ->bs_local ->stop ();
82
82
$ this ->assertFalse ($ this ->bs_local ->isRunning ());
83
- $ this ->bs_local ->start (array ('v ' => true ));
83
+ $ this ->bs_local ->start (array ('- v ' => true ));
84
84
$ this ->assertTrue ($ this ->bs_local ->isRunning ());
85
85
}
86
86
87
87
public function test_checkPid () {
88
88
$ this ->assertFalse ($ this ->bs_local ->isRunning ());
89
- $ this ->bs_local ->start (array ('v ' => true ));
89
+ $ this ->bs_local ->start (array ('- v ' => true ));
90
90
$ this ->assertTrue ($ this ->bs_local ->pid > 0 );
91
91
}
92
92
93
93
public function test_multiple_binary () {
94
- $ this ->bs_local ->start (array ('v ' => true ));
94
+ $ this ->bs_local ->start (array ('- v ' => true ));
95
95
$ bs_local_2 = new Local ();
96
96
$ log_file2 = getcwd (). '/log2.log ' ;
97
97
print ($ log_file2 );
98
98
try {
99
- $ bs_local_2 ->start (array ('v ' => true , 'logfile ' => $ log_file2 ));
99
+ $ bs_local_2 ->start (array ('- v ' => true , '- logfile ' => $ log_file2 ));
100
100
$ this ->fail ("Expected Exception has not been raised. " );
101
101
} catch (LocalException $ ex ) {
102
102
$ emessage = $ ex ->getMessage ();
0 commit comments