Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker committed Jun 1, 2020
1 parent fe67299 commit b4692e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Psr\Log\LoggerAwareTrait;
use Symfony\Component\OptionsResolver\OptionsResolver;

final class WampConnectionFactory implements WampConnectionFactoryInterface, LoggerAwareInterface
final class ClientFactory implements ClientFactoryInterface, LoggerAwareInterface
{
use LoggerAwareTrait;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Gos\Component\WebSocketClient\Wamp;

interface WampConnectionFactoryInterface
interface ClientFactoryInterface
{
public function createConnection(): ClientInterface;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
namespace Gos\Component\WebSocketClient\Tests\Wamp;

use Gos\Component\WebSocketClient\Wamp\ClientInterface;
use Gos\Component\WebSocketClient\Wamp\WampConnectionFactory;
use Gos\Component\WebSocketClient\Wamp\ClientFactory;
use PHPUnit\Framework\TestCase;
use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException;
use Symfony\Component\OptionsResolver\Exception\MissingOptionsException;

class WampConnectionFactoryTest extends TestCase
final class ClientFactoryTest extends TestCase
{
public function dataInvalidConfiguration(): \Generator
{
Expand Down Expand Up @@ -53,7 +53,7 @@ public function dataValidConfiguration(): \Generator
*/
public function testTheFactoryIsCreatedWithAValidConfiguration(array $config): void
{
$this->assertInstanceOf(WampConnectionFactory::class, new WampConnectionFactory($config));
$this->assertInstanceOf(ClientFactory::class, new ClientFactory($config));
}

/**
Expand All @@ -72,7 +72,7 @@ public function testTheFactoryIsNotCreatedWithAnInvalidConfiguration(
$this->expectExceptionMessage($exceptionMessage);
}

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

public function testTheConnectionObjectIsCreated(): void
Expand All @@ -82,7 +82,7 @@ public function testTheConnectionObjectIsCreated(): void
'port' => 1337,
];

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

$this->assertInstanceOf(ClientInterface::class, $connection);
}
Expand Down

0 comments on commit b4692e6

Please sign in to comment.