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');
reduce([$mock1, $mock2], $this->plus(), 1)->cancel();
}