Generated methods returns variable, fixes strict error "Only variable references should be returned by reference"
Generates method __destruct() if needed (when it is declared in mocked object)
Merge pull request #1 from jasir/fixes

Fixes