1
1
<?php
2
2
3
- use Mockery as m ;
4
-
5
3
/**
6
4
* @runTestsInSeparateProcesses
7
5
* @preserveGlobalState disabled
@@ -11,7 +9,7 @@ class CallInBackgroundTest extends TestCase
11
9
/** @test */
12
10
public function it_works_without_optional_before_and_after_parameters ()
13
11
{
14
- $ mock = m ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
12
+ $ mock = Mockery ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
15
13
$ mock ->shouldReceive ('factory ' )->withArgs (['test command ' , null , null ])->once ()->andReturnSelf ();
16
14
$ mock ->shouldReceive ('runInBackground ' )->withNoArgs ()->once ();
17
15
@@ -21,7 +19,7 @@ public function it_works_without_optional_before_and_after_parameters()
21
19
/** @test */
22
20
public function it_works_with_optional_before_parameter ()
23
21
{
24
- $ mock = m ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
22
+ $ mock = Mockery ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
25
23
$ mock ->shouldReceive ('factory ' )->withArgs (['test command ' , 'before command ' , null ])->once ()->andReturnSelf ();
26
24
$ mock ->shouldReceive ('runInBackground ' )->withNoArgs ()->once ();
27
25
@@ -31,7 +29,7 @@ public function it_works_with_optional_before_parameter()
31
29
/** @test */
32
30
public function it_works_with_optional_after_parameter ()
33
31
{
34
- $ mock = m ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
32
+ $ mock = Mockery ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
35
33
$ mock ->shouldReceive ('factory ' )->withArgs (['test command ' , null , 'after command ' ])->once ()->andReturnSelf ();
36
34
$ mock ->shouldReceive ('runInBackground ' )->withNoArgs ()->once ();
37
35
@@ -41,7 +39,7 @@ public function it_works_with_optional_after_parameter()
41
39
/** @test */
42
40
public function it_works_with_optional_before_and_after_parameters_together ()
43
41
{
44
- $ mock = m ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
42
+ $ mock = Mockery ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
45
43
$ mock ->shouldReceive ('factory ' )->withArgs (['test command ' , 'before ' , 'after ' ])->once ()->andReturnSelf ();
46
44
$ mock ->shouldReceive ('runInBackground ' )->withNoArgs ()->once ();
47
45
0 commit comments