formapro / Fumocker

A php function mocker.
MIT License
7 stars 1 forks source link

PHP 5.4 incompatibility fix #21

Closed mekras closed 10 years ago

mekras commented 10 years ago

On PHP 5.4 method Fumocker::getMock breaks tests with message:

Non-static method PHPUnit_Framework_MockObject_Generator::getMock() should not be called statically, assuming $this from incompatible context