title: Phpunit, how to mock an abstract class?
body: <p>Im talking about this function:</p>
  
  <pre><code>function testMeSomehow ($id, Flag $flags)
  {
      $flags::NAME;
  }
  </code></pre>
  
  <p>its parameter object:</p>
  
  <pre><code>abstract class Flag
  {
      abstract function method1();
      abstract function method2();
  .
  .
  .
      abstract function method999();
  }
  </code></pre>
  
  <p>how to mock this <code>Flag</code> class? It has tons of abstract methods, should I create all of them with empty body? And what if this class changes? I also have to add a <code>NAME</code> constant to it</p>