11<?php
22
3- use Datagram \Socket ;
3+ use React \ Datagram \Socket ;
44use React \Promise \When ;
55use React \Promise \PromiseInterface ;
66
@@ -11,15 +11,15 @@ class FactoryTest extends TestCase
1111 public function setUp ()
1212 {
1313 $ this ->loop = React \EventLoop \Factory::create ();
14- $ this ->factory = new Datagram \Factory ($ this ->loop , $ this ->createResolverMock ());
14+ $ this ->factory = new React \ Datagram \Factory ($ this ->loop , $ this ->createResolverMock ());
1515 }
1616
1717 public function testCreateClient ()
1818 {
1919 $ promise = $ this ->factory ->createClient ('127.0.0.1:12345 ' );
2020
2121 $ capturedClient = $ this ->getValueFromResolvedPromise ($ promise );
22- $ this ->assertInstanceOf ('Datagram\Socket ' , $ capturedClient );
22+ $ this ->assertInstanceOf ('React\ Datagram\Socket ' , $ capturedClient );
2323
2424 $ capturedClient ->close ();
2525 }
@@ -29,7 +29,7 @@ public function testCreateClientLocalhost()
2929 $ promise = $ this ->factory ->createClient ('localhost:12345 ' );
3030
3131 $ capturedClient = $ this ->getValueFromResolvedPromise ($ promise );
32- $ this ->assertInstanceOf ('Datagram\Socket ' , $ capturedClient );
32+ $ this ->assertInstanceOf ('React\ Datagram\Socket ' , $ capturedClient );
3333
3434 $ capturedClient ->close ();
3535 }
@@ -39,7 +39,7 @@ public function testCreateClientIpv6()
3939 $ promise = $ this ->factory ->createClient ('[::1]:12345 ' );
4040
4141 $ capturedClient = $ this ->getValueFromResolvedPromise ($ promise );
42- $ this ->assertInstanceOf ('Datagram\Socket ' , $ capturedClient );
42+ $ this ->assertInstanceOf ('React\ Datagram\Socket ' , $ capturedClient );
4343
4444 $ capturedClient ->close ();
4545 }
@@ -49,7 +49,7 @@ public function testCreateServer()
4949 $ promise = $ this ->factory ->createServer ('127.0.0.1:12345 ' );
5050
5151 $ capturedServer = $ this ->getValueFromResolvedPromise ($ promise );
52- $ this ->assertInstanceOf ('Datagram\Socket ' , $ capturedServer );
52+ $ this ->assertInstanceOf ('React\ Datagram\Socket ' , $ capturedServer );
5353
5454 $ capturedServer ->close ();
5555 }
@@ -59,7 +59,7 @@ public function testCreateServerRandomPort()
5959 $ promise = $ this ->factory ->createServer ('127.0.0.1:0 ' );
6060
6161 $ capturedServer = $ this ->getValueFromResolvedPromise ($ promise );
62- $ this ->assertInstanceOf ('Datagram\Socket ' , $ capturedServer );
62+ $ this ->assertInstanceOf ('React\ Datagram\Socket ' , $ capturedServer );
6363
6464 $ this ->assertNotEquals ('127.0.0.1:0 ' , $ capturedServer ->getLocalAddress ());
6565
0 commit comments