public function testApiAll_ResolvesPromise_WithEmptyInputArray() { $test = $this->getTest(); $mock = $test->createCallableMock(); $mock->expects($test->once())->method('__invoke')->with($test->identicalTo([])); Promise::all([])->then($mock); }