Google\Cloud\Tests\PubSub\TopicTest::testExistsReturnsFalse PHP Method

testExistsReturnsFalse() public method

    public function testExistsReturnsFalse()
    {
        $this->connection->getTopic(Argument::withEntry('foo', 'bar'))->willThrow(new NotFoundException('uh oh'));
        $this->topic->setConnection($this->connection->reveal());
        $this->assertFalse($this->topic->exists(['foo' => 'bar']));
    }