public function delete() { if ($this->localMockHasExpectationsFor('delete')) { return $this->getLocalMock()->delete(); } return parent::delete(); }