public function shouldResolveSparseArrayInput() { $mock = $this->createCallableMock(); $mock->expects($this->once())->method('__invoke')->with($this->identicalTo(null)); race([null, 1, null, 2, 3])->then($mock); }