public function testSimpleRules($ruleInfo, $data, $isValid = true) { $this->assertEquals($isValid, $this->rule->validate($data, $ruleInfo)); }