Skip to content

Commit b4692e6

Browse files
committed
Rename
1 parent fe67299 commit b4692e6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Psr\Log\LoggerAwareTrait;
77
use Symfony\Component\OptionsResolver\OptionsResolver;
88

9-
final class WampConnectionFactory implements WampConnectionFactoryInterface, LoggerAwareInterface
9+
final class ClientFactory implements ClientFactoryInterface, LoggerAwareInterface
1010
{
1111
use LoggerAwareTrait;
1212

src/Wamp/WampConnectionFactoryInterface.php renamed to src/Wamp/ClientFactoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Gos\Component\WebSocketClient\Wamp;
44

5-
interface WampConnectionFactoryInterface
5+
interface ClientFactoryInterface
66
{
77
public function createConnection(): ClientInterface;
88
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
namespace Gos\Component\WebSocketClient\Tests\Wamp;
44

55
use Gos\Component\WebSocketClient\Wamp\ClientInterface;
6-
use Gos\Component\WebSocketClient\Wamp\WampConnectionFactory;
6+
use Gos\Component\WebSocketClient\Wamp\ClientFactory;
77
use PHPUnit\Framework\TestCase;
88
use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException;
99
use Symfony\Component\OptionsResolver\Exception\MissingOptionsException;
1010

11-
class WampConnectionFactoryTest extends TestCase
11+
final class ClientFactoryTest extends TestCase
1212
{
1313
public function dataInvalidConfiguration(): \Generator
1414
{
@@ -53,7 +53,7 @@ public function dataValidConfiguration(): \Generator
5353
*/
5454
public function testTheFactoryIsCreatedWithAValidConfiguration(array $config): void
5555
{
56-
$this->assertInstanceOf(WampConnectionFactory::class, new WampConnectionFactory($config));
56+
$this->assertInstanceOf(ClientFactory::class, new ClientFactory($config));
5757
}
5858

5959
/**
@@ -72,7 +72,7 @@ public function testTheFactoryIsNotCreatedWithAnInvalidConfiguration(
7272
$this->expectExceptionMessage($exceptionMessage);
7373
}
7474

75-
$this->assertInstanceOf(WampConnectionFactory::class, new WampConnectionFactory($config));
75+
$this->assertInstanceOf(ClientFactory::class, new ClientFactory($config));
7676
}
7777

7878
public function testTheConnectionObjectIsCreated(): void
@@ -82,7 +82,7 @@ public function testTheConnectionObjectIsCreated(): void
8282
'port' => 1337,
8383
];
8484

85-
$connection = (new WampConnectionFactory($config))->createConnection();
85+
$connection = (new ClientFactory($config))->createConnection();
8686

8787
$this->assertInstanceOf(ClientInterface::class, $connection);
8888
}

0 commit comments

Comments
 (0)