OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
aws-ses
/
vendor
/
guzzlehttp
/
guzzle
/
tests
/
Exception
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/14/2024 10:52:52 AM
rwxr-xr-x
📄
BadResponseExceptionTest.php
747 bytes
08/14/2024 10:52:52 AM
rw-r--r--
📄
ConnectExceptionTest.php
936 bytes
08/14/2024 10:52:52 AM
rw-r--r--
📄
RequestExceptionTest.php
6.38 KB
08/14/2024 10:52:52 AM
rw-r--r--
Editing: BadResponseExceptionTest.php
Close
<?php namespace GuzzleHttp\Tests\Exception; use GuzzleHttp\Exception\BadResponseException; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response; use PHPUnit\Framework\TestCase; class BadResponseExceptionTest extends TestCase { public function testHasNoResponse() { $req = new Request('GET', '/'); $prev = new \Exception(); $response = new Response(); $e = new BadResponseException('foo', $req, $response, $prev); self::assertSame($req, $e->getRequest()); self::assertSame($response, $e->getResponse()); self::assertTrue($e->hasResponse()); self::assertSame('foo', $e->getMessage()); self::assertSame($prev, $e->getPrevious()); } }