Пример #1
0
 /**
  * Ensures that setMd5() returns expected value
  *
  * @return void
  */
 public function testSetMd5()
 {
     $validator = new File\Md5('12345');
     $validator->setMd5('12333');
     $this->assertEquals(array('12333' => 'md5'), $validator->getMd5());
     $validator->setMd5(array('12321', '12121'));
     $this->assertEquals(array('12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
 }