React\Promise\CancellationQueueTest::acceptsSimpleCancellableThenable PHP Метод

acceptsSimpleCancellableThenable() публичный Метод

    public function acceptsSimpleCancellableThenable()
    {
        $p = new SimpleTestCancellableThenable();
        $cancellationQueue = new CancellationQueue();
        $cancellationQueue->enqueue($p);
        $cancellationQueue();
        $this->assertTrue($p->cancelCalled);
    }