@@ -21,82 +21,82 @@ public function tearDown(){
2121 }
2222
2323 public function test_verbose () {
24- $ this ->bs_local ->add_args ('v ' );
24+ $ this ->bs_local ->add_args ('- v ' );
2525 $ this ->assertContains ('-v ' ,$ this ->bs_local ->command ());
2626 }
2727
2828 public function test_set_folder () {
29- $ this ->bs_local ->add_args ('f ' , "/ " );
29+ $ this ->bs_local ->add_args ('- f ' , "/ " );
3030 $ this ->assertContains ('-f ' ,$ this ->bs_local ->command ());
3131 $ this ->assertContains ('/ ' ,$ this ->bs_local ->command ());
3232 }
3333
3434 public function test_enable_force () {
35- $ this ->bs_local ->add_args ("force " );
35+ $ this ->bs_local ->add_args ("- force " );
3636 }
3737
3838 public function test_set_local_identifier () {
39- $ this ->bs_local ->add_args ("localIdentifier " , "randomString " );
39+ $ this ->bs_local ->add_args ("- localIdentifier " , "randomString " );
4040 $ this ->assertContains ('-localIdentifier randomString ' ,$ this ->bs_local ->command ());
4141 }
4242
4343 public function test_enable_only () {
44- $ this ->bs_local ->add_args ("only " );
44+ $ this ->bs_local ->add_args ("- only " );
4545 $ this ->assertContains ('-only ' ,$ this ->bs_local ->command ());
4646 }
4747
4848 public function test_enable_only_automate () {
49- $ this ->bs_local ->add_args ("onlyAutomate " );
49+ $ this ->bs_local ->add_args ("- onlyAutomate " );
5050 $ this ->assertContains ('-onlyAutomate ' , $ this ->bs_local ->command ());
5151 }
5252
5353 public function test_enable_force_local () {
54- $ this ->bs_local ->add_args ("forcelocal " );
54+ $ this ->bs_local ->add_args ("- forcelocal " );
5555 $ this ->assertContains ('-forcelocal ' ,$ this ->bs_local ->command ());
5656 }
5757
5858 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 " );
6363 $ this ->assertContains ('-proxyHost localhost -proxyPort 8080 -proxyUser user -proxyPass pass ' ,$ this ->bs_local ->command ());
6464 }
6565
6666 public function test_enable_force_proxy () {
67- $ this ->bs_local ->add_args ("forceproxy " );
67+ $ this ->bs_local ->add_args ("- forceproxy " );
6868 $ this ->assertContains ('-forceproxy ' ,$ this ->bs_local ->command ());
6969 }
7070
7171
7272 public function test_hosts () {
73- $ this ->bs_local ->add_args ("hosts " , "localhost,8080,0 " );
73+ $ this ->bs_local ->add_args ("- hosts " , "localhost,8080,0 " );
7474 $ this ->assertContains ('localhost,8080,0 ' ,$ this ->bs_local ->command ());
7575 }
7676
7777 public function test_isRunning () {
7878 $ this ->assertFalse ($ this ->bs_local ->isRunning ());
79- $ this ->bs_local ->start (array ('v ' => true ));
79+ $ this ->bs_local ->start (array ('- v ' => true ));
8080 $ this ->assertTrue ($ this ->bs_local ->isRunning ());
8181 $ this ->bs_local ->stop ();
8282 $ this ->assertFalse ($ this ->bs_local ->isRunning ());
83- $ this ->bs_local ->start (array ('v ' => true ));
83+ $ this ->bs_local ->start (array ('- v ' => true ));
8484 $ this ->assertTrue ($ this ->bs_local ->isRunning ());
8585 }
8686
8787 public function test_checkPid () {
8888 $ this ->assertFalse ($ this ->bs_local ->isRunning ());
89- $ this ->bs_local ->start (array ('v ' => true ));
89+ $ this ->bs_local ->start (array ('- v ' => true ));
9090 $ this ->assertTrue ($ this ->bs_local ->pid > 0 );
9191 }
9292
9393 public function test_multiple_binary () {
94- $ this ->bs_local ->start (array ('v ' => true ));
94+ $ this ->bs_local ->start (array ('- v ' => true ));
9595 $ bs_local_2 = new Local ();
9696 $ log_file2 = getcwd (). '/log2.log ' ;
9797 print ($ log_file2 );
9898 try {
99- $ bs_local_2 ->start (array ('v ' => true , 'logfile ' => $ log_file2 ));
99+ $ bs_local_2 ->start (array ('- v ' => true , '- logfile ' => $ log_file2 ));
100100 $ this ->fail ("Expected Exception has not been raised. " );
101101 } catch (LocalException $ ex ) {
102102 $ emessage = $ ex ->getMessage ();
0 commit comments