function testGetValidator() { $this->mockcal->expectOnce('getValidator', array()); $Decorator = new Calendar_Decorator($this->mockcal); $Decorator->getValidator(); }