File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,29 @@ public function testSockets()
6262 $ this ->markTestIncomplete ($ e ->getMessage ());
6363 }
6464 }
65+
66+ public function testAura ()
67+ {
68+ try {
69+ $ conn = new \Bolt \connection \StreamSocket ('demo.neo4jlabs.com ' );
70+ $ conn ->setSslContextOptions ([
71+ 'verify_peer ' => true
72+ ]);
73+ $ this ->assertInstanceOf (\Bolt \connection \StreamSocket::class, $ conn );
74+
75+ $ bolt = new Bolt ($ conn );
76+ $ this ->assertInstanceOf (Bolt::class, $ bolt );
77+
78+ $ protocol = $ bolt ->build ();
79+ $ this ->assertInstanceOf (AProtocol::class, $ protocol );
80+
81+ $ this ->assertIsArray ($ protocol ->hello (\Bolt \helpers \Auth::basic ('movies ' , 'movies ' )));
82+
83+ $ protocol ->goodbye ();
84+ } catch (Exception $ e ) {
85+ $ this ->markTestIncomplete ($ e ->getMessage ());
86+ }
87+ }
6588
6689 /**
6790 * @return AProtocol
You can’t perform that action at this time.
0 commit comments