33namespace Bolt \tests \structures \v5 ;
44
55use Bolt \Bolt ;
6- use Bolt \protocol \{ AProtocol , V4_3 , V4_4 , V5 , V5_1 } ;
6+ use Bolt \protocol \AProtocol ;
77use Bolt \tests \structures \v1 \DateTimeTrait ;
88use Bolt \tests \structures \v1 \DateTimeZoneIdTrait ;
99use Bolt \protocol \v5 \structures \{
2424 */
2525class StructuresTest extends \Bolt \tests \structures \StructureLayer
2626{
27- public function testInit (): AProtocol | V4_3 | V4_4 | V5 | V5_1
27+ public function testInit (): AProtocol
2828 {
2929 $ conn = new \Bolt \connection \StreamSocket ($ GLOBALS ['NEO_HOST ' ] ?? '127.0.0.1 ' , $ GLOBALS ['NEO_PORT ' ] ?? 7687 );
3030 $ this ->assertInstanceOf (\Bolt \connection \StreamSocket::class, $ conn );
3131
3232 $ bolt = new Bolt ($ conn );
3333 $ this ->assertInstanceOf (Bolt::class, $ bolt );
3434
35- /** @var AProtocol|V4_3|V4_4|V5|V5_1 $protocol */
3635 $ protocol = $ bolt ->build ();
3736 $ this ->assertInstanceOf (AProtocol::class, $ protocol );
3837
@@ -54,7 +53,7 @@ public function testInit(): AProtocol|V4_3|V4_4|V5|V5_1
5453 /**
5554 * @depends testInit
5655 */
57- public function testNode (AProtocol | V4_3 | V4_4 | V5 | V5_1 $ protocol )
56+ public function testNode (AProtocol $ protocol )
5857 {
5958 $ protocol ->begin ()->getResponse ();
6059
@@ -81,7 +80,7 @@ public function testNode(AProtocol|V4_3|V4_4|V5|V5_1 $protocol)
8180 /**
8281 * @depends testInit
8382 */
84- public function testPath (AProtocol | V4_3 | V4_4 | V5 | V5_1 $ protocol )
83+ public function testPath (AProtocol $ protocol )
8584 {
8685 $ protocol ->begin ()->getResponse ();
8786
@@ -112,7 +111,7 @@ public function testPath(AProtocol|V4_3|V4_4|V5|V5_1 $protocol)
112111 /**
113112 * @depends testInit
114113 */
115- public function testRelationship (AProtocol | V4_3 | V4_4 | V5 | V5_1 $ protocol )
114+ public function testRelationship (AProtocol $ protocol )
116115 {
117116 $ protocol ->begin ()->getResponse ();
118117
0 commit comments