for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace FtwSoft\NotificationChannels\Intercom\Tests;
use FtwSoft\NotificationChannels\Intercom\Exceptions\RequestException;
use GuzzleHttp\Psr7\Request;
use PHPUnit\Framework\TestCase;
use GuzzleHttp\Exception\RequestException as BaseRequestException;
class RequestExceptionTest extends TestCase
{
public function testItReturnsBaseExceptionProvidedToConstruct(): void
$baseException = new BaseRequestException(
'It is an exception',
new Request('get', 'http://foo.bar')
);
$exception = new RequestException($baseException);
$this->assertEquals($exception->getBaseException(), $baseException);
}