Ejemplo n.º 1
0
 /** @test */
 public function shouldResolveToEmptyArrayWhenInputPromiseDoesNotResolveToArray()
 {
     $mock = $this->createCallableMock();
     $mock->expects($this->once())->method('__invoke')->with($this->identicalTo(array()));
     When::all(When::resolve(1), $mock);
 }