public function min_comparer_empty()
{
$xs = $this->createHotObservable([onNext(150, 1), onCompleted(250)]);
$results = $this->scheduler->startWithCreate(function () use($xs) {
return $xs->min(function ($a, $b) {
return $a > $b ? -1 : ($a < $b ? 1 : 0);
});
});
$this->assertMessages([onError(250, new \Exception())], $results->getMessages());
}