Beispiel #1
0
 /**
  * hashImageOperations
  *
  * @param array $imageSizes
  * @param integer $hashLenght
  * @return string
  */
 public function hashImageOperations($imageSizes, $hashLenght = 8)
 {
     return \Imagine\ImagineUtility::hashImageOperations($imageSizes, $hashLenght = 8);
 }
 /**
  * testHashImageOperations
  *
  * @return void
  */
 public function testHashImageOperations()
 {
     $operations = array('SomeModel' => array('t200x150' => array('thumbnail' => array('width' => 200, 'height' => 150))));
     $result = \Imagine\ImagineUtility::hashImageOperations($operations);
     $this->assertEqual($result, array('SomeModel' => array('t200x150' => '38b1868f')));
 }