Refresh Package #62
Annotations
11 warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Tests:
src/MezzioTestEnvironment.php#L38
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
putenv('APP_TESTING=true');
$this->basePath = $basePath ?? Util::basePath();
$this->basePath = Util::ensureTrailingSlash($this->basePath);
- chdir($this->basePath);
+
$this->app();
// initialize App for routes to be populated
$this->registerErrorListener();
|
Tests:
src/MezzioTestEnvironment.php#L60
Escaped Mutant for Mutator "SharedCaseRemoval":
--- Original
+++ New
@@ @@
case RequestMethodInterface::METHOD_GET:
$request = $request->withQueryParams($params);
break;
- case RequestMethodInterface::METHOD_PUT:
case RequestMethodInterface::METHOD_PATCH:
case RequestMethodInterface::METHOD_POST:
$request = $request->withParsedBody($params);
|
Tests:
src/MezzioTestEnvironment.php#L60
Escaped Mutant for Mutator "SharedCaseRemoval":
--- Original
+++ New
@@ @@
$request = $request->withQueryParams($params);
break;
case RequestMethodInterface::METHOD_PUT:
- case RequestMethodInterface::METHOD_PATCH:
case RequestMethodInterface::METHOD_POST:
$request = $request->withParsedBody($params);
}
|
Tests:
src/MezzioTestEnvironment.php#L109
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
return $this->container;
}
/** @var ContainerInterface $container */
- $container = (require $this->basePath . 'config/container.php');
+ $container = (require 'config/container.php');
$this->container = $container;
return $this->container;
}
|
Tests:
src/MezzioTestEnvironment.php#L144
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$this->app = $this->container()->get(Application::class);
$factory = $this->container()->get(MiddlewareFactory::class);
/** @var callable $pipeline */
- $pipeline = (require $this->basePath . 'config/pipeline.php');
+ $pipeline = (require 'config/pipeline.php');
$pipeline($this->app, $factory, $this->container());
/** @var callable $routes */
$routes = (require $this->basePath . 'config/routes.php');
|
Tests:
src/MezzioTestEnvironment.php#L147
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$pipeline = (require $this->basePath . 'config/pipeline.php');
$pipeline($this->app, $factory, $this->container());
/** @var callable $routes */
- $routes = (require $this->basePath . 'config/routes.php');
+ $routes = (require 'config/routes.php');
$routes($this->app, $factory, $this->container());
return $this->app;
}
}
|
Tests:
src/TestConfigProvider.php#L25
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
return [];
}
$configDir = self::prepareConfigDir($configDir);
- return [new PhpFileProvider($configDir . '{{,*.}testing,{,*.}testing.local}.php'), new PhpFileProvider($configDir . 'testing/{{,*.}testing,{,*.}testing.local}.php')];
+ return [new PhpFileProvider($configDir . '{{,*.}testing,{,*.}testing.local}.php'), new PhpFileProvider('testing/{{,*.}testing,{,*.}testing.local}.php' . $configDir)];
}
private static function isTesting() : bool
{
|
Tests:
src/TestConfigProvider.php#L38
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
private static function prepareConfigDir(string|null $configDir) : string
{
if ($configDir === null) {
- return Util::basePath() . 'config/autoload/';
+ return 'config/autoload/' . Util::basePath();
}
return Util::ensureTrailingSlash($configDir);
}
}
|
Tests:
src/TestConfigProvider.php#L38
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
private static function prepareConfigDir(string|null $configDir) : string
{
if ($configDir === null) {
- return Util::basePath() . 'config/autoload/';
+ return 'config/autoload/';
}
return Util::ensureTrailingSlash($configDir);
}
}
|
Tests:
src/TestConfigProvider.php#L38
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
private static function prepareConfigDir(string|null $configDir) : string
{
if ($configDir === null) {
- return Util::basePath() . 'config/autoload/';
+ return Util::basePath();
}
return Util::ensureTrailingSlash($configDir);
}
}
|
Loading