OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
email
/
vendor
/
guzzlehttp
/
promises
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/10/2024 05:25:02 AM
rwxr-xr-x
📄
AggregateExceptionTest.php
456 bytes
07/10/2024 05:22:33 AM
rw-r--r--
📄
CoroutineTest.php
3.63 KB
07/10/2024 05:22:33 AM
rw-r--r--
📄
CreateTest.php
1.63 KB
07/10/2024 05:22:34 AM
rw-r--r--
📄
EachPromiseTest.php
14.92 KB
07/10/2024 05:22:34 AM
rw-r--r--
📄
EachTest.php
944 bytes
07/10/2024 05:22:35 AM
rw-r--r--
📄
FulfilledPromiseTest.php
3.12 KB
07/10/2024 05:22:35 AM
rw-r--r--
📄
IsTest.php
1.06 KB
07/10/2024 05:22:35 AM
rw-r--r--
📄
NotPromiseInstance.php
1.08 KB
07/10/2024 05:22:35 AM
rw-r--r--
📄
PromiseTest.php
22.44 KB
07/10/2024 05:22:35 AM
rw-r--r--
📄
PropertyHelper.php
596 bytes
07/10/2024 05:22:35 AM
rw-r--r--
📄
RejectedPromiseTest.php
4.08 KB
07/10/2024 05:22:35 AM
rw-r--r--
📄
RejectionExceptionTest.php
796 bytes
07/10/2024 05:22:35 AM
rw-r--r--
📄
TaskQueueTest.php
942 bytes
07/10/2024 05:22:35 AM
rw-r--r--
📄
Thennable.php
502 bytes
07/10/2024 05:22:35 AM
rw-r--r--
📄
Thing1.php
296 bytes
07/10/2024 05:22:36 AM
rw-r--r--
📄
Thing2.php
228 bytes
07/10/2024 05:22:36 AM
rw-r--r--
📄
UtilsTest.php
24.18 KB
07/10/2024 05:22:36 AM
rw-r--r--
Editing: RejectionExceptionTest.php
Close
<?php declare(strict_types=1); namespace GuzzleHttp\Promise\Tests; use GuzzleHttp\Promise\RejectionException; use PHPUnit\Framework\TestCase; /** * @covers \GuzzleHttp\Promise\RejectionException */ class RejectionExceptionTest extends TestCase { public function testCanGetReasonFromException(): void { $thing = new Thing1('foo'); $e = new RejectionException($thing); $this->assertSame($thing, $e->getReason()); $this->assertSame('The promise was rejected with reason: foo', $e->getMessage()); } public function testCanGetReasonMessageFromJson(): void { $reason = new Thing2(); $e = new RejectionException($reason); $this->assertStringContainsString('{}', $e->getMessage()); } }