Skip to content

Commit 22f96fd

Browse files
committed
Test removeSubscriber behavior with LogSubscriber&CommandSubscriber
1 parent 42608f3 commit 22f96fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/logging/logging-addSubscriber-005.phpt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ mongoc_log(LogSubscriber::LEVEL_DEBUG, 'domain', 'debug');
4242

4343
removeSubscriber($subscriber);
4444

45+
// Neither subscriber implementation should be notified after removal
46+
$manager->executeCommand(DATABASE_NAME, new Command(['ping' => 1]));
47+
48+
mongoc_log(LogSubscriber::LEVEL_DEBUG, 'domain', 'debug');
49+
4550
?>
4651
===DONE===
4752
--EXPECTF--

0 commit comments

Comments
 (0)