title: PHP Mocking Final Class
body: <p>I am attempting to mock a php <code>final class</code> but since it is declared <code>final</code> I keep receiving this error:</p>
  
  <p><code>PHPUnit_Framework_Exception: Class "Doctrine\ORM\Query" is declared "final" and cannot be mocked.</code></p>
  
  <p>Is there anyway to get around this <code>final</code> behavior just for my unit tests without introducing any new frameworks?</p>