@@ -41,7 +41,7 @@ function it_is_disconnected()
41
41
$ this ->isConnected ()->shouldBe (false );
42
42
}
43
43
44
- function it_can_connect_and_disconnect_with_default_options ()
44
+ function it_connects_and_disconnects_with_default_options ()
45
45
{
46
46
$ this ->connect ();
47
47
$ this ->shouldHaveType ('Nats\Connection ' );
@@ -59,7 +59,7 @@ function it_increases_reconnects_count_on_each_reconnection()
59
59
$ this ->close ();
60
60
}
61
61
62
- function it_a_ping_is_sent_after_a_successful_connection ()
62
+ function it_sends_ping_after_a_successful_connection ()
63
63
{
64
64
$ this ->connect ();
65
65
$ this ->pingsCount ()->shouldBe (1 );
@@ -94,5 +94,30 @@ function it_decreases_subscriptions_after_unsubscribing_to_a_topic()
94
94
$ this ->close ();
95
95
}
96
96
97
+ function it_sends_a_message_with_a_1024c_subject ()
98
+ {
99
+ $ this ->connect ();
100
+ $ subject = str_pad ("" , 1024 *1 , "x " );
101
+ $ this ->publish ($ subject );
102
+ $ this ->pubsCount ()->shouldBe (1 );
103
+ $ this ->close ();
104
+ }
105
+
106
+ function it_sends_a_message_with_a_1024x10c_subject ()
107
+ {
108
+ $ this ->connect ();
109
+ $ subject = str_pad ("" , 1024 *10 , "x " );
110
+ $ this ->publish ($ subject );
111
+ $ this ->pubsCount ()->shouldBe (1 );
112
+ $ this ->close ();
113
+ }
97
114
115
+ function it_sends_a_message_with_a_1024x100c_subject ()
116
+ {
117
+ $ this ->connect ();
118
+ $ subject = str_pad ("" , 1024 *100 , "x " );
119
+ $ this ->publish ($ subject );
120
+ $ this ->pubsCount ()->shouldBe (1 );
121
+ $ this ->close ();
122
+ }
98
123
}
0 commit comments