title: How to test a code which uses ini_get with different ini values dynamically with PHPUnit?
body: <p>I have a code that uses <code>ini_get</code> and does some additional logic based on its value. </p>
  
  <p>I want to test the code using PHPUnit with multiple set of values for those ini-configuration. Is that possible? How?</p>
  
  <p>A mimic of the code is as below:</p>
  
  <pre><code>function check_upload_limit()
  {
      $value = ini_get('post_max_size');
  
      if (num_bytes($value) &lt; 10 * 1000 * 1000)
      {
          return 'Too small';
      }
      else
      {
          return 'Sufficient';
      }
  }
  </code></pre>
  
  <p>I want to test it with several values for <code>post_max_size</code>.</p>