public function setUp() { $this->connection = $this->prophesize(ConnectionInterface::class); $this->client = new PubSubClientStub(['projectId' => 'project', 'transport' => 'rest']); }