See mailing list message 'Mock object correction for interfaces' for description of the issue this commit fixes.
See mailing list message 'Mock object correction for interfaces' for description
of the issue this commit fixes.

Changes
Refractored Mock::_overrideMethods() to utilize Stub::_createFunctionDeclaration()
to  determine how the function methods are declared.

Updated Mock::_createFunctionDeclaration() to check and see if we are using
PHP 5 - if so, don't add amperstand.


git-svn-id: 8cac6767e1b55896ff0bac9834fdf7774718fe0a@982 9ad96551-d73f-0410-9433-afe301b4b3ac

GerHobbelt/simpletest,ShaneMcC/SimpleTest,uluru/simpletest,GerHobbelt/simpletest,blueyed/simpletest,GerHobbelt/simpletest,uluru/simpletest,ShaneMcC/SimpleTest,blueyed/simpletest,blueyed/simpletest