Skip to content

Commit

Permalink
Fixed codesniffer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
glo71317 committed Nov 3, 2023
1 parent 74bb732 commit 6285c38
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 29 deletions.
23 changes: 11 additions & 12 deletions test/Service/ContainerAbstractServiceFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace LaminasTest\Session\Service;

use Laminas\ServiceManager\Config;
use Laminas\ServiceManager\ServiceManager;
use Laminas\Session\Container;
use Laminas\Session\ManagerInterface;
Expand Down Expand Up @@ -35,17 +34,17 @@ class ContainerAbstractServiceFactoryTest extends TestCase
protected function setUp(): void
{
$this->services = new ServiceManager([
'services' => [
'config' => $this->config,
StorageInterface::class => new ArrayStorage(),
],
'factories' => [
ManagerInterface::class => SessionManagerFactory::class,
],
'abstract_factories' => [
ContainerAbstractServiceFactory::class,
],
]);
'services' => [
'config' => $this->config,
StorageInterface::class => new ArrayStorage(),
],
'factories' => [
ManagerInterface::class => SessionManagerFactory::class,
],
'abstract_factories' => [
ContainerAbstractServiceFactory::class,
],
]);
}

/** @psalm-return array<array-key, array{0: string, 1: string}> */
Expand Down
9 changes: 4 additions & 5 deletions test/Service/SessionConfigFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace LaminasTest\Session\Service;

use Laminas\ServiceManager\Config;
use Laminas\ServiceManager\Exception\ServiceNotCreatedException;
use Laminas\ServiceManager\ServiceManager;
use Laminas\Session\Config\ConfigInterface;
Expand All @@ -24,10 +23,10 @@ class SessionConfigFactoryTest extends TestCase
protected function setUp(): void
{
$this->services = new ServiceManager([
'factories' => [
ConfigInterface::class => SessionConfigFactory::class,
],
]);
'factories' => [
ConfigInterface::class => SessionConfigFactory::class,
],
]);
}

public function testCreatesSessionConfigByDefault(): void
Expand Down
13 changes: 6 additions & 7 deletions test/Service/SessionManagerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace LaminasTest\Session\Service;

use Laminas\EventManager\Test\EventListenerIntrospectionTrait;
use Laminas\ServiceManager\Config;
use Laminas\ServiceManager\Exception\ServiceNotCreatedException;
use Laminas\ServiceManager\ServiceManager;
use Laminas\Session\Config\ConfigInterface;
Expand Down Expand Up @@ -38,12 +37,12 @@ class SessionManagerFactoryTest extends TestCase
protected function setUp(): void
{
$this->services = new ServiceManager([
'factories' => [
ManagerInterface::class => SessionManagerFactory::class,
TestManager::class => SessionManagerFactory::class,
TestSaveHandler::class => SessionManagerFactory::class,
],
]);
'factories' => [
ManagerInterface::class => SessionManagerFactory::class,
TestManager::class => SessionManagerFactory::class,
TestSaveHandler::class => SessionManagerFactory::class,
],
]);
}

public function testCreatesSessionManager(): void
Expand Down
9 changes: 4 additions & 5 deletions test/Service/StorageFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace LaminasTest\Session\Service;

use ArrayObject;
use Laminas\ServiceManager\Config;
use Laminas\ServiceManager\Exception\ServiceNotCreatedException;
use Laminas\ServiceManager\ServiceManager;
use Laminas\Session\Config\StandardConfig;
Expand All @@ -25,10 +24,10 @@ class StorageFactoryTest extends TestCase
protected function setUp(): void
{
$this->services = new ServiceManager([
'factories' => [
StorageInterface::class => StorageFactory::class,
],
]);
'factories' => [
StorageInterface::class => StorageFactory::class,
],
]);
}

/**
Expand Down

0 comments on commit 6285c38

Please sign in to comment.