@@ -47,7 +47,7 @@ public function it_has_static_constructor_named_factory()
47
47
/** @test */
48
48
public function it_can_run_command_in_background ()
49
49
{
50
- $ this ->shouldRecieveExecCallOnceWith ('(php artisan test:command) > /dev/null 2>&1 & ' );
50
+ $ this ->shouldReceiveExecCallOnceWith ('(php artisan test:command) > /dev/null 2>&1 & ' );
51
51
52
52
$ command = Command::factory ('test:command ' );
53
53
$ command ->runInBackground ();
@@ -56,7 +56,7 @@ public function it_can_run_command_in_background()
56
56
/** @test */
57
57
public function run_in_background_supports_before_subcommand ()
58
58
{
59
- $ this ->shouldRecieveExecCallOnceWith ('(before command && php artisan test:command) > /dev/null 2>&1 & ' );
59
+ $ this ->shouldReceiveExecCallOnceWith ('(before command && php artisan test:command) > /dev/null 2>&1 & ' );
60
60
61
61
$ command = Command::factory ('test:command ' , 'before command ' );
62
62
$ command ->runInBackground ();
@@ -65,7 +65,7 @@ public function run_in_background_supports_before_subcommand()
65
65
/** @test */
66
66
public function run_in_background_supports_after_subcommand ()
67
67
{
68
- $ this ->shouldRecieveExecCallOnceWith ('(php artisan test:command && after command) > /dev/null 2>&1 & ' );
68
+ $ this ->shouldReceiveExecCallOnceWith ('(php artisan test:command && after command) > /dev/null 2>&1 & ' );
69
69
70
70
$ command = Command::factory ('test:command ' , null , 'after command ' );
71
71
$ command ->runInBackground ();
@@ -74,7 +74,7 @@ public function run_in_background_supports_after_subcommand()
74
74
/** @test */
75
75
public function run_in_background_supports_before_and_after_subcommands_together ()
76
76
{
77
- $ this ->shouldRecieveExecCallOnceWith ('(before && php artisan test:command && after) > /dev/null 2>&1 & ' );
77
+ $ this ->shouldReceiveExecCallOnceWith ('(before && php artisan test:command && after) > /dev/null 2>&1 & ' );
78
78
79
79
$ command = Command::factory ('test:command ' , 'before ' , 'after ' );
80
80
$ command ->runInBackground ();
@@ -87,7 +87,7 @@ public function run_in_background_supports_before_and_after_subcommands_together
87
87
*/
88
88
public function it_adds_php_option_for_hhvm ()
89
89
{
90
- $ this ->shouldRecieveExecCallOnceWith ('(before && php --php artisan test:command && after) > /dev/null 2>&1 & ' );
90
+ $ this ->shouldReceiveExecCallOnceWith ('(before && php --php artisan test:command && after) > /dev/null 2>&1 & ' );
91
91
92
92
define ('HHVM_VERSION ' , true );
93
93
$ command = Command::factory ('test:command ' , 'before ' , 'after ' );
@@ -101,14 +101,14 @@ public function it_adds_php_option_for_hhvm()
101
101
*/
102
102
public function it_supports_overriding_of_artisan_binary_through_constant ()
103
103
{
104
- $ this ->shouldRecieveExecCallOnceWith ('(before && php custom-artisan test:command && after) > /dev/null 2>&1 & ' );
104
+ $ this ->shouldReceiveExecCallOnceWith ('(before && php custom-artisan test:command && after) > /dev/null 2>&1 & ' );
105
105
106
106
define ('ARTISAN_BINARY ' , 'custom-artisan ' );
107
107
$ command = Command::factory ('test:command ' , 'before ' , 'after ' );
108
108
$ command ->runInBackground ();
109
109
}
110
110
111
- private function shouldRecieveExecCallOnceWith ($ with )
111
+ private function shouldReceiveExecCallOnceWith ($ with )
112
112
{
113
113
self ::$ functions ->shouldReceive ('exec ' )->with ($ with )->once ();
114
114
}
0 commit comments