public function testValidate() { list($value, $field, $expected, $data) = func_get_args(); $this->assertEquals($expected, $this->object->validate($value, $field, $data)); }