title: phpunit test with ::class constant
body: <p>Basicly I've got class with use ::class constant from another. For example:</p>
  
  <pre><code>class Foo {}
  class Bar {}
  
  class example {
     public function fancyMethod($object)
     {
         if(get_class($object) == Foo::class)
         {
          // do some
         } elseif(get_class($object) == Bar::class)
         {
          // somehing else
         }
  
    }
  }
  </code></pre>
  
  <p>now the problem is how to mock during tests object of <code>Foo</code> class. The mock <code>::class</code> constant would return me something like <code>PHPUnit_Framework_MockObject_MockObject</code></p>
  
  <p>any suggestions?</p>