public function testInvalidRuleClassShouldThrowComponentException() { $this->setExpectedException(ComponentException::class); Validator::iDoNotExistSoIShouldThrowException(); }