33namespace Bolt \tests \connection ;
44
55use Bolt \Bolt ;
6- use Bolt \protocol \Response ;
6+ use Bolt \protocol \{
7+ AProtocol ,
8+ Response ,
9+ V4_3 ,
10+ V4_4 ,
11+ V5
12+ };
713use Bolt \connection \{
814 IConnection ,
915 Socket ,
@@ -42,7 +48,7 @@ public function testMillisecondTimeout(string $alias)
4248 {
4349 $ conn = $ this ->getConnection ($ alias );
4450 $ conn ->setTimeout (1.5 );
45- /** @var \Bolt\protocol\ AProtocol|\Bolt\protocol\ V4_3|\Bolt\protocol\ V4_4 $protocol */
51+ /** @var AProtocol|V4_3|V4_4|V5 $protocol */
4652 $ protocol = (new Bolt ($ conn ))->build ();
4753 $ protocol ->hello (Auth::basic ($ GLOBALS ['NEO_USER ' ], $ GLOBALS ['NEO_PASS ' ]));
4854 $ this ->expectException (ConnectionTimeoutException::class);
@@ -59,7 +65,7 @@ public function testMillisecondTimeout(string $alias)
5965 public function testLongNoTimeout (string $ alias )
6066 {
6167 $ conn = $ this ->getConnection ($ alias );
62- /** @var \Bolt\protocol\ AProtocol|\Bolt\protocol\ V4_3|\Bolt\protocol\ V4_4 $protocol */
68+ /** @var AProtocol|V4_3|V4_4|V5 $protocol */
6369 $ protocol = (new Bolt ($ conn ))->build ();
6470 $ protocol ->hello (Auth::basic ($ GLOBALS ['NEO_USER ' ], $ GLOBALS ['NEO_PASS ' ]));
6571 $ conn ->setTimeout (200 );
@@ -76,7 +82,7 @@ public function testSecondsTimeout(string $alias)
7682 {
7783 $ conn = $ this ->getConnection ($ alias );
7884 $ conn ->setTimeout (1 );
79- /** @var \Bolt\protocol\ AProtocol|\Bolt\protocol\ V4_3|\Bolt\protocol\ V4_4 $protocol */
85+ /** @var AProtocol|V4_3|V4_4|V5 $protocol */
8086 $ protocol = (new Bolt ($ conn ))->build ();
8187 $ protocol ->hello (Auth::basic ($ GLOBALS ['NEO_USER ' ], $ GLOBALS ['NEO_PASS ' ]));
8288 $ this ->expectException (ConnectionTimeoutException::class);
@@ -92,7 +98,7 @@ public function testSecondsTimeout(string $alias)
9298 public function testTimeoutRecoverAndReset (string $ alias )
9399 {
94100 $ conn = $ this ->getConnection ($ alias );
95- /** @var \Bolt\protocol\ AProtocol|\Bolt\protocol\ V4_3|\Bolt\protocol\ V4_4 $protocol */
101+ /** @var AProtocol|V4_3|V4_4|V5 $protocol */
96102 $ protocol = (new Bolt ($ conn ))->build ();
97103 $ protocol ->hello (Auth::basic ($ GLOBALS ['NEO_USER ' ], $ GLOBALS ['NEO_PASS ' ]));
98104
@@ -117,7 +123,7 @@ public function testTimeoutRecoverAndReset(string $alias)
117123 ->getResponse ();
118124
119125 $ this ->assertEquals (Response::SIGNATURE_FAILURE , $ response ->getSignature ());
120- /** @var \Bolt\protocol\ AProtocol|\Bolt\protocol\ V4_3|\Bolt\protocol\ V4_4 $protocol */
126+ /** @var AProtocol|V4_3|V4_4|V5 $protocol */
121127 $ protocol = (new Bolt ($ conn ))->build ();
122128 $ protocol ->hello (Auth::basic ($ GLOBALS ['NEO_USER ' ], $ GLOBALS ['NEO_PASS ' ]));
123129
0 commit comments