mardi 25 août 2015

PHP Mocking Final Class

I am attempting to mock a php final class but since it is declared final I keep receiving this error:

PHPUnit_Framework_Exception: Class "Doctrine\ORM\Query" is declared "final" and cannot be mocked.

Is there anyway to get around this final behavior just for my unit tests?

Aucun commentaire:

Enregistrer un commentaire