public function testCreateAndListSubscriptions($client)
{
$topicName = uniqid(self::TESTING_PREFIX);
$topic = $client->createTopic($topicName);
$subsToCreate = [uniqid(self::TESTING_PREFIX), uniqid(self::TESTING_PREFIX)];
foreach ($subsToCreate as $subToCreate) {
self::$deletionQueue[] = $client->subscribe($subToCreate, $topicName);
}
$subs = $client->subscriptions();
$subsByTopic = $topic->subscriptions();
$this->assertSubsFound($subs, $subsToCreate);
$this->assertSubsFound($subsByTopic, $subsToCreate);
}