array('string')) * @param array $expected Array containing the expected results. Either * an array containing the error message or the an empty * array if input is correct */ public function validate_data_check($input, $validate_check, $expected) { foreach ($input as $key => $data) { $this->assertEquals($expected[$key], validate_data(array($data), array($validate_check[$key]))); } } }