This repository was archived by the owner on Oct 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,4 +15,54 @@ function it_is_initializable()
1515 {
1616 $ this ->shouldHaveType ('Nats\ServerInfo ' );
1717 }
18+
19+ function it_has_server_id ()
20+ {
21+ $ this ->getServerID ()->shouldNotBeNull ();
22+ }
23+
24+ function it_has_server_host ()
25+ {
26+ $ this ->getHost ()->shouldBe ("0.0.0.0 " );
27+ }
28+
29+ function it_has_server_port ()
30+ {
31+ $ this ->getPort ()->shouldBe (4222 );
32+ }
33+
34+ function it_has_version ()
35+ {
36+ $ this ->getVersion ()->shouldBe ("0.9.6 " );
37+ }
38+
39+ function it_has_go_version ()
40+ {
41+ $ this ->getGoVersion ()->shouldBe ("go1.7.3 " );
42+ }
43+
44+ function it_has_is_auth_required ()
45+ {
46+ $ this ->isAuthRequired ()->shouldBeBoolean ();
47+ }
48+
49+ function it_has_is_tls_required ()
50+ {
51+ $ this ->isTLSRequired ()->shouldBeBoolean ();
52+ }
53+
54+ function it_has_is_tls_verified ()
55+ {
56+ $ this ->isTLSVerify ()->shouldBeBoolean ();
57+ }
58+
59+ function it_has_is_ssl_required ()
60+ {
61+ $ this ->isSSLRequired ()->shouldBeBoolean ();
62+ }
63+
64+ function it_has_max_payload ()
65+ {
66+ $ this ->getMaxPayload ()->shouldBe (1048576 );
67+ }
1868}
Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ public function isSSLRequired()
304304 */
305305 public function setSSLRequired ($ SSLRequired )
306306 {
307- $ this ->TLSRequired = $ SSLRequired ;
307+ $ this ->SSLRequired = $ SSLRequired ;
308308 }
309309
310310 /**
You can’t perform that action at this time.
0 commit comments