This repository has been archived by the owner on Apr 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24042bf
commit 21d1623
Showing
11 changed files
with
206 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of Alt Three Bus. | ||
* | ||
* (c) Alt Three Services Limited | ||
* (c) Taylor Otwell | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace AltThree\Tests\Bus\Stubs; | ||
|
||
class BusDispatcherBasicCommand | ||
{ | ||
public $name; | ||
|
||
public function __construct($name = null) | ||
{ | ||
$this->name = $name; | ||
} | ||
|
||
public function handle(BusInjectionStub $stub) | ||
{ | ||
// | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of Alt Three Bus. | ||
* | ||
* (c) Alt Three Services Limited | ||
* (c) Taylor Otwell | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace AltThree\Tests\Bus\Stubs; | ||
|
||
class BusDispatcherTestBasicCommand | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of Alt Three Bus. | ||
* | ||
* (c) Alt Three Services Limited | ||
* (c) Taylor Otwell | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace AltThree\Tests\Bus\Stubs; | ||
|
||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
|
||
class BusDispatcherTestCustomQueueCommand implements ShouldQueue | ||
{ | ||
public function queue($queue, $command) | ||
{ | ||
$queue->push($command); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/Stubs/BusDispatcherTestSpecificQueueAndDelayCommand.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of Alt Three Bus. | ||
* | ||
* (c) Alt Three Services Limited | ||
* (c) Taylor Otwell | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace AltThree\Tests\Bus\Stubs; | ||
|
||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
|
||
class BusDispatcherTestSpecificQueueAndDelayCommand implements ShouldQueue | ||
{ | ||
public $queue = 'foo'; | ||
public $delay = 10; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of Alt Three Bus. | ||
* | ||
* (c) Alt Three Services Limited | ||
* (c) Taylor Otwell | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace AltThree\Tests\Bus\Stubs; | ||
|
||
class BusInjectionStub | ||
{ | ||
} |
27 changes: 27 additions & 0 deletions
27
tests/Stubs/Handlers/BusDispatcherTestBasicCommandHandler.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of Alt Three Bus. | ||
* | ||
* (c) Alt Three Services Limited | ||
* (c) Taylor Otwell | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace AltThree\Tests\Bus\Stubs\Handlers; | ||
|
||
class BusDispatcherTestBasicCommandHandler | ||
{ | ||
public $count = 0; | ||
|
||
public function handle() | ||
{ | ||
$this->count++; | ||
|
||
return 'foo'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of Alt Three Bus. | ||
* | ||
* (c) Alt Three Services Limited | ||
* (c) Taylor Otwell | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace AltThree\Tests\Bus\Stubs; | ||
|
||
class StandAloneCommand | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of Alt Three Bus. | ||
* | ||
* (c) Alt Three Services Limited | ||
* (c) Taylor Otwell | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace AltThree\Tests\Bus\Stubs; | ||
|
||
class StandAloneHandler | ||
{ | ||
public function handle(StandAloneCommand $command) | ||
{ | ||
return $command; | ||
} | ||
} |