Google\Cloud\Tests\Snippets\PubSub\SubscriptionTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        $this->connection = $this->prophesize(ConnectionInterface::class);
        $this->subscription = new \SubscriptionStub($this->connection->reveal(), 'foo', self::SUBSCRIPTION, self::TOPIC, false);
        $this->pubsub = new \PubSubClientStub(['transport' => 'rest']);
        $this->pubsub->setConnection($this->connection->reveal());
    }