function testPrevYear() { $this->mockcal->expectOnce('prevYear', array('int')); $Decorator = new Calendar_Decorator($this->mockcal); $this->assertEqual(2002, $Decorator->prevYear()); }