/** @test */ public function shouldRejectWhenInputContainsRejection() { $mock = $this->createCallableMock(); $mock->expects($this->once())->method('__invoke')->with($this->identicalTo(2)); When::map(array(When::resolve(1), When::reject(2), When::resolve(3)), $this->mapper())->then($this->expectCallableNever(), $mock); }