11<?php
22
3- use Mockery as m ;
4-
53/**
64 * @runTestsInSeparateProcesses
75 * @preserveGlobalState disabled
@@ -11,7 +9,7 @@ class CallInBackgroundTest extends TestCase
119 /** @test */
1210 public function it_works_without_optional_before_and_after_parameters ()
1311 {
14- $ mock = m ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
12+ $ mock = Mockery ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
1513 $ mock ->shouldReceive ('factory ' )->withArgs (['test command ' , null , null ])->once ()->andReturnSelf ();
1614 $ mock ->shouldReceive ('runInBackground ' )->withNoArgs ()->once ();
1715
@@ -21,7 +19,7 @@ public function it_works_without_optional_before_and_after_parameters()
2119 /** @test */
2220 public function it_works_with_optional_before_parameter ()
2321 {
24- $ mock = m ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
22+ $ mock = Mockery ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
2523 $ mock ->shouldReceive ('factory ' )->withArgs (['test command ' , 'before command ' , null ])->once ()->andReturnSelf ();
2624 $ mock ->shouldReceive ('runInBackground ' )->withNoArgs ()->once ();
2725
@@ -31,7 +29,7 @@ public function it_works_with_optional_before_parameter()
3129 /** @test */
3230 public function it_works_with_optional_after_parameter ()
3331 {
34- $ mock = m ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
32+ $ mock = Mockery ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
3533 $ mock ->shouldReceive ('factory ' )->withArgs (['test command ' , null , 'after command ' ])->once ()->andReturnSelf ();
3634 $ mock ->shouldReceive ('runInBackground ' )->withNoArgs ()->once ();
3735
@@ -41,7 +39,7 @@ public function it_works_with_optional_after_parameter()
4139 /** @test */
4240 public function it_works_with_optional_before_and_after_parameters_together ()
4341 {
44- $ mock = m ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
42+ $ mock = Mockery ::mock ('alias:Illuminated\Helpers\Artisan\Command ' );
4543 $ mock ->shouldReceive ('factory ' )->withArgs (['test command ' , 'before ' , 'after ' ])->once ()->andReturnSelf ();
4644 $ mock ->shouldReceive ('runInBackground ' )->withNoArgs ()->once ();
4745
0 commit comments