OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
guzzlehttp
/
promises
/
tests
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:33:20 AM
rwxr-xr-x
📄
AggregateExceptionTest.php
422 bytes
08/12/2024 10:33:20 AM
rw-r--r--
📄
CoroutineTest.php
3.59 KB
08/12/2024 10:33:20 AM
rw-r--r--
📄
CreateTest.php
1.57 KB
08/12/2024 10:33:20 AM
rw-r--r--
📄
EachPromiseTest.php
14.62 KB
08/12/2024 10:33:20 AM
rw-r--r--
📄
EachTest.php
904 bytes
08/12/2024 10:33:20 AM
rw-r--r--
📄
FulfilledPromiseTest.php
3.01 KB
08/12/2024 10:33:20 AM
rw-r--r--
📄
IsTest.php
1.01 KB
08/12/2024 10:33:20 AM
rw-r--r--
📄
NotPromiseInstance.php
1009 bytes
08/12/2024 10:33:20 AM
rw-r--r--
📄
PromiseTest.php
21.8 KB
08/12/2024 10:33:20 AM
rw-r--r--
📄
PropertyHelper.php
568 bytes
08/12/2024 10:33:20 AM
rw-r--r--
📄
RejectedPromiseTest.php
3.96 KB
08/12/2024 10:33:20 AM
rw-r--r--
📄
RejectionExceptionTest.php
755 bytes
08/12/2024 10:33:20 AM
rw-r--r--
📄
TaskQueueTest.php
872 bytes
08/12/2024 10:33:20 AM
rw-r--r--
📄
Thennable.php
475 bytes
08/12/2024 10:33:20 AM
rw-r--r--
📄
Thing1.php
268 bytes
08/12/2024 10:33:20 AM
rw-r--r--
📄
Thing2.php
200 bytes
08/12/2024 10:33:20 AM
rw-r--r--
📄
UtilsTest.php
23.63 KB
08/12/2024 10:33:20 AM
rw-r--r--
Editing: IsTest.php
Close
<?php namespace GuzzleHttp\Promise\Tests; use GuzzleHttp\Promise as P; use GuzzleHttp\Promise\FulfilledPromise; use GuzzleHttp\Promise\Promise; use GuzzleHttp\Promise\RejectedPromise; use PHPUnit\Framework\TestCase; class IsTest extends TestCase { public function testKnowsIfFulfilled() { $p = new FulfilledPromise(null); $this->assertTrue(P\Is::fulfilled($p)); $this->assertFalse(P\Is::rejected($p)); } public function testKnowsIfRejected() { $p = new RejectedPromise(null); $this->assertTrue(P\Is::rejected($p)); $this->assertFalse(P\Is::fulfilled($p)); } public function testKnowsIfSettled() { $p = new RejectedPromise(null); $this->assertTrue(P\Is::settled($p)); $this->assertFalse(P\Is::pending($p)); } public function testKnowsIfPending() { $p = new Promise(); $this->assertFalse(P\Is::settled($p)); $this->assertTrue(P\Is::pending($p)); } }