function testReturnValue() { $this->mockcal->expectOnce('returnValue', array('a', 'b', 'c', 'd')); $this->mockcal->setReturnValue('returnValue', 'foo'); $Decorator = new Calendar_Decorator($this->mockcal); $this->assertEqual('foo', $Decorator->returnValue('a', 'b', 'c', 'd')); }