88
99class TopicsTest extends FCMTestCase
1010{
11- /**
12- * @test
13- */
14- public function it_throw_an_exception_if_no_topic_is_provided ()
11+ public function testItThrowAnExceptionIfNoTopicIsProvided ()
1512 {
1613 $ topics = new Topics ();
1714
1815 $ this ->setExceptionExpected (NoTopicProvidedException::class);
1916 $ topics ->build ();
2017 }
2118
22- /**
23- * @test
24- */
25- public function it_has_only_one_topic ()
19+ public function testItHasOnlyOneTopic ()
2620 {
2721 $ target = '/topics/myTopic ' ;
2822
@@ -33,10 +27,7 @@ public function it_has_only_one_topic()
3327 $ this ->assertEquals ($ target , $ topics ->build ());
3428 }
3529
36- /**
37- * @test
38- */
39- public function it_has_two_topics_and ()
30+ public function testItHasTwoTopicsAnd ()
4031 {
4132 $ target = [
4233 'condition ' => "'firstTopic' in topics && 'secondTopic' in topics " ,
@@ -49,10 +40,7 @@ public function it_has_two_topics_and()
4940 $ this ->assertEquals ($ target , $ topics ->build ());
5041 }
5142
52- /**
53- * @test
54- */
55- public function it_has_two_topics_or ()
43+ public function testItHasTwoTopicsOr ()
5644 {
5745 $ target = [
5846 'condition ' => "'firstTopic' in topics || 'secondTopic' in topics " ,
@@ -65,10 +53,7 @@ public function it_has_two_topics_or()
6553 $ this ->assertEquals ($ target , $ topics ->build ());
6654 }
6755
68- /**
69- * @test
70- */
71- public function it_has_two_topics_or_and_one_and ()
56+ public function testItHasTwoTopicsOrAndOneAnd ()
7257 {
7358 $ target = [
7459 'condition ' => "'firstTopic' in topics || 'secondTopic' in topics && 'thirdTopic' in topics " ,
@@ -81,10 +66,7 @@ public function it_has_two_topics_or_and_one_and()
8166 $ this ->assertEquals ($ target , $ topics ->build ());
8267 }
8368
84- /**
85- * @test
86- */
87- public function it_has_a_complex_topic_condition ()
69+ public function testItHasAComplexTopicCondition ()
8870 {
8971 $ target = [
9072 'condition ' => "'TopicA' in topics && ('TopicB' in topics || 'TopicC' in topics) || ('TopicD' in topics && 'TopicE' in topics) " ,
@@ -103,10 +85,7 @@ public function it_has_a_complex_topic_condition()
10385 $ this ->assertEquals ($ target , $ topics ->build ());
10486 }
10587
106- /**
107- * @test
108- */
109- public function it_send_a_notification_to_a_topic ()
88+ public function testItSendsANotificationToATopic ()
11089 {
11190 $ response = new Response (200 , [], '{"message_id":6177433633397011933} ' );
11291
@@ -128,10 +107,7 @@ public function it_send_a_notification_to_a_topic()
128107 $ this ->assertNull ($ response ->error ());
129108 }
130109
131- /**
132- * @test
133- */
134- public function it_send_a_notification_to_a_topic_and_return_error ()
110+ public function testItSendsANotificationToATopicAndReturnError ()
135111 {
136112 $ response = new Response (200 , [], '{"error":"TopicsMessageRateExceeded"} ' );
137113
0 commit comments