public function setUp() { $this->connection = $this->prophesize(ConnectionInterface::class); $this->subscription = new SubscriptionStub($this->connection->reveal(), 'project-id', 'subscription-name', 'topic-name', true); }