You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$subscriber->subscribe($subscriptionTopicFilter, function (string$topic, string$message, bool$retained) use ($subscriber, $publishTopic, $publishMessage) {
45
-
// By asserting something here, we will avoid a no-assertions-in-test warning, making the test pass.
46
-
$this->assertEquals($publishTopic, $topic);
47
-
$this->assertEquals($publishMessage, $message);
48
-
$this->assertFalse($retained);
47
+
$subscriber->subscribe(
48
+
$subscriptionTopicFilter,
49
+
function (string$topic, string$message, bool$retained, array$wildcards) use ($subscriber, $publishTopic, $publishMessage, $matchedTopicWildcards) {
50
+
// By asserting something here, we will avoid a no-assertions-in-test warning, making the test pass.
$subscriber->subscribe($subscriptionTopicFilter, function (string$topic, string$message, bool$retained) use ($subscriber, $publishTopic, $publishMessage) {
81
-
// By asserting something here, we will avoid a no-assertions-in-test warning, making the test pass.
82
-
$this->assertEquals($publishTopic, $topic);
83
-
$this->assertEquals($publishMessage, $message);
84
-
$this->assertFalse($retained);
89
+
$subscriber->subscribe(
90
+
$subscriptionTopicFilter,
91
+
function (string$topic, string$message, bool$retained, array$wildcards) use ($subscriber, $publishTopic, $publishMessage, $matchedTopicWildcards) {
92
+
// By asserting something here, we will avoid a no-assertions-in-test warning, making the test pass.
0 commit comments