33namespace Gos \Component \WebSocketClient \Tests \Wamp ;
44
55use Gos \Component \WebSocketClient \Wamp \ClientInterface ;
6- use Gos \Component \WebSocketClient \Wamp \WampConnectionFactory ;
6+ use Gos \Component \WebSocketClient \Wamp \ClientFactory ;
77use PHPUnit \Framework \TestCase ;
88use Symfony \Component \OptionsResolver \Exception \InvalidOptionsException ;
99use 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