public function it_throws_on_error_if_disposed() { $subject = new BehaviorSubject(); $subject->dispose(); $subject->onError(new Exception('fail')); }