public function shouldCancelInputArrayPromises()
{
$mock1 = $this->getMockBuilder('React\\Promise\\CancellablePromiseInterface')->getMock();
$mock1->expects($this->once())->method('cancel');
$mock2 = $this->getMockBuilder('React\\Promise\\CancellablePromiseInterface')->getMock();
$mock2->expects($this->once())->method('cancel');
map([$mock1, $mock2], $this->mapper())->cancel();
}