mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 01:07:23 +01:00
chore(cleanup): Tidy-up and tweaks of Pest Parallel integration.
This commit is contained in:
@ -21,6 +21,9 @@ final class Laravel implements HandlesArguments
|
||||
{
|
||||
use HandleArguments;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function handleArguments(array $arguments): array
|
||||
{
|
||||
return self::whenUsingLaravel($arguments, function (array $arguments): array {
|
||||
@ -43,10 +46,8 @@ final class Laravel implements HandlesArguments
|
||||
{
|
||||
$isLaravelApplication = InstalledVersions::isInstalled('laravel/framework', false);
|
||||
$isLaravelPackage = class_exists(\Orchestra\Testbench\TestCase::class);
|
||||
if ($isLaravelApplication) {
|
||||
return $closure($arguments);
|
||||
}
|
||||
if ($isLaravelPackage) {
|
||||
|
||||
if ($isLaravelApplication && ! $isLaravelPackage) {
|
||||
return $closure($arguments);
|
||||
}
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ final class Parallel implements HandlesArguments
|
||||
];
|
||||
|
||||
/**
|
||||
* Handles the arguments, removing the ones that are not needed, and adding the "runner" argument.
|
||||
* Handles the arguments, removing the ones that are not needed, and adds the "runner" argument.
|
||||
*/
|
||||
public function handleArguments(array $arguments): array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user