mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
fix: test suite
This commit is contained in:
@ -40,7 +40,7 @@ final class Only implements Terminable
|
||||
*/
|
||||
public static function enable(TestCall $testCall): void
|
||||
{
|
||||
if (Environment::name() == Environment::CI) {
|
||||
if (Environment::name() === Environment::CI) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ final class Laravel implements HandlesArguments
|
||||
*/
|
||||
public function handleArguments(array $arguments): array
|
||||
{
|
||||
return self::whenUsingLaravel($arguments, function (array $arguments): array {
|
||||
return $this->whenUsingLaravel($arguments, function (array $arguments): array {
|
||||
$this->ensureRunnerIsResolvable();
|
||||
|
||||
$arguments = $this->ensureEnvironmentVariables($arguments);
|
||||
@ -42,7 +42,7 @@ final class Laravel implements HandlesArguments
|
||||
* @param CLosure(array<int, string>): array<int, string> $closure
|
||||
* @return array<int, string>
|
||||
*/
|
||||
private static function whenUsingLaravel(array $arguments, Closure $closure): array
|
||||
private function whenUsingLaravel(array $arguments, Closure $closure): array
|
||||
{
|
||||
$isLaravelApplication = InstalledVersions::isInstalled('laravel/framework', false);
|
||||
$isLaravelPackage = class_exists(\Orchestra\Testbench\TestCase::class);
|
||||
|
||||
Reference in New Issue
Block a user