--TEST-- MongoDB\Driver\Manager::addSubscriber() does not support LogSubscriber instances --FILE-- addSubscriber(new MyLogger); }, MongoDB\Driver\Exception\InvalidArgumentException::class), "\n"; echo throws(function () use ($manager) { $manager->addSubscriber(new MySubscriber); }, MongoDB\Driver\Exception\InvalidArgumentException::class), "\n"; ?> ===DONE=== --EXPECT-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException LogSubscriber instances cannot be registered with a Manager OK: Got MongoDB\Driver\Exception\InvalidArgumentException LogSubscriber instances cannot be registered with a Manager ===DONE===