Beispiel #1
0
 /**
  * Wraps the returned calendar objects from fetchAll in the named decorator
  * @param string name of Decorator class to wrap with
  * @return array
  * @access public
  */
 function fetchAll($decorator)
 {
     $children = parent::fetchAll();
     foreach ($children as $key => $Calendar) {
         $children[$key] =& new $decorator($Calendar);
     }
     return $children;
 }
 function testFetchAll()
 {
     $this->mockcal->expectOnce('fetchAll', array());
     $Decorator = new Calendar_Decorator($this->mockcal);
     $Decorator->fetchAll();
 }