OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
Xpress_backup
/
vendor
/
guzzlehttp
/
promises
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:17 AM
rwxr-xr-x
📄
AggregateExceptionTest.php
456 bytes
05/19/2025 10:07:17 AM
rw-r--r--
📄
CoroutineTest.php
3.63 KB
05/19/2025 10:07:18 AM
rw-r--r--
📄
CreateTest.php
1.63 KB
05/19/2025 10:07:17 AM
rw-r--r--
📄
EachPromiseTest.php
14.92 KB
05/19/2025 10:07:17 AM
rw-r--r--
📄
EachTest.php
944 bytes
05/19/2025 10:07:18 AM
rw-r--r--
📄
FulfilledPromiseTest.php
3.12 KB
05/19/2025 10:07:18 AM
rw-r--r--
📄
IsTest.php
1.06 KB
05/19/2025 10:07:18 AM
rw-r--r--
📄
NotPromiseInstance.php
1.08 KB
05/19/2025 10:07:17 AM
rw-r--r--
📄
PromiseTest.php
22.44 KB
05/19/2025 10:07:18 AM
rw-r--r--
📄
PropertyHelper.php
596 bytes
05/19/2025 10:07:17 AM
rw-r--r--
📄
RejectedPromiseTest.php
4.08 KB
05/19/2025 10:07:18 AM
rw-r--r--
📄
RejectionExceptionTest.php
796 bytes
05/19/2025 10:07:18 AM
rw-r--r--
📄
TaskQueueTest.php
942 bytes
05/19/2025 10:07:17 AM
rw-r--r--
📄
Thennable.php
502 bytes
05/19/2025 10:07:18 AM
rw-r--r--
📄
Thing1.php
296 bytes
05/19/2025 10:07:18 AM
rw-r--r--
📄
Thing2.php
228 bytes
05/19/2025 10:07:18 AM
rw-r--r--
📄
UtilsTest.php
24.18 KB
05/19/2025 10:07:18 AM
rw-r--r--
Editing: NotPromiseInstance.php
Close
<?php declare(strict_types=1); namespace GuzzleHttp\Promise\Tests; use GuzzleHttp\Promise\Promise; use GuzzleHttp\Promise\PromiseInterface; class NotPromiseInstance extends Thennable implements PromiseInterface { private $nextPromise; public function __construct() { $this->nextPromise = new Promise(); } public function then(callable $res = null, callable $rej = null): PromiseInterface { return $this->nextPromise->then($res, $rej); } public function otherwise(callable $onRejected): PromiseInterface { return $this->then($onRejected); } public function resolve($value): void { $this->nextPromise->resolve($value); } public function reject($reason): void { $this->nextPromise->reject($reason); } public function wait(bool $unwrap = true, bool $defaultResolution = null): void { } public function cancel(): void { } public function getState(): string { return $this->nextPromise->getState(); } }