Beispiel #1
0
 /**
  * Override the nextMonth method to format the output
  */
 function nextMonth()
 {
     $nextStamp = parent::nextMonth(TRUE);
     // Build the URL for next month
     return $_SERVER['PHP_SELF'] . '?y=' . date('Y', $nextStamp) . '&m=' . date('n', $nextStamp) . '&d=' . date('j', $nextStamp);
 }
 function testNextMonth()
 {
     $this->mockcal->expectOnce('nextMonth', array('int'));
     $Decorator = new Calendar_Decorator($this->mockcal);
     $this->assertEqual(11, $Decorator->nextMonth());
 }