@@ -41,7 +41,7 @@ function it_is_disconnected()
4141 $ this ->isConnected ()->shouldBe (false );
4242 }
4343
44- function it_can_connect_and_disconnect_with_default_options ()
44+ function it_connects_and_disconnects_with_default_options ()
4545 {
4646 $ this ->connect ();
4747 $ this ->shouldHaveType ('Nats\Connection ' );
@@ -59,7 +59,7 @@ function it_increases_reconnects_count_on_each_reconnection()
5959 $ this ->close ();
6060 }
6161
62- function it_a_ping_is_sent_after_a_successful_connection ()
62+ function it_sends_ping_after_a_successful_connection ()
6363 {
6464 $ this ->connect ();
6565 $ this ->pingsCount ()->shouldBe (1 );
@@ -94,5 +94,30 @@ function it_decreases_subscriptions_after_unsubscribing_to_a_topic()
9494 $ this ->close ();
9595 }
9696
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+ }
97114
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+ }
98123}
0 commit comments