Google\Cloud\Tests\Exception\ServiceExceptionTest::testHasServiceException PHP Method

testHasServiceException() public method

    public function testHasServiceException()
    {
        $previous = new \Exception('test');
        $ex = new ServiceException('foo', 123, $previous);
        $this->assertTrue($ex->hasServiceException());
        $this->assertEquals($previous, $ex->getServiceException());
    }