public function doesNotCallCancelTwiceWhenStartedTwice() { $d = $this->getCancellableDeferred(); $cancellationQueue = new CancellationQueue(); $cancellationQueue->enqueue($d->promise()); $cancellationQueue(); $cancellationQueue(); }