public function testCheckHasErrors()
{
$rules = array('title' => 'please enter a title');
$result = Validator::check(array(), $rules);
$this->assertNotEmpty($result);
$expected = array('title' => array('please enter a title'));
$this->assertEqual($expected, $result);
}