Beispiel #1
0
 /**
  * Override the thisMonth method to format the output
  */
 function thisMonth()
 {
     $thisStamp = parent::thisMonth(TRUE);
     // A human readable string from this month
     return date('F Y', $thisStamp);
 }
 function testThisMonth()
 {
     $this->mockcal->expectOnce('thisMonth', array('int'));
     $Decorator = new Calendar_Decorator($this->mockcal);
     $this->assertEqual(10, $Decorator->thisMonth());
 }