public function testLimitValidation() { $this->specify("if model is accounting, limit must be non empty", function () { $model = new Number(); $model->options = [Number::OPTION_ACCOUNTING]; $model->validate(['limit']); expect($model->hasErrors())->true(); }); }