title: phpunit abstract class constant
body: <p>I'm trying to find a way to test a abstract class constant that must exist and match/not match a value. Example:</p>
  
  <pre><code>// to be extended by ExternalSDKClild
  abstract class ExternalSDK {
      const VERSION = '3.1.1.'; 
  }
  
  
  class foo extends AController {
      public function init() {   
          if ( ExternalSDK::VERSION !== '3.1.1' ) {
              throw new Exception('Wrong ExternalSDK version!');
          }
  
          $this-&gt;setExternalSDKChild(new ExternalSDKChild());
      }
  }
  </code></pre>
  
  <p>Limitations... The framework we use doesn't allow dependency injection in the init() method. (Suggestion to refactor the init() method could be the way to go...)</p>
  
  <p>The unit tests and code coverage I have run, cover all but the Exception. I can't figure out a way to make the ExternalSDK::Version to be different from what it is.</p>
  
  <p>All thoughts welcome</p>