title: Unit Testing in PHPUnit - Handling Multiple Conditions
body: <p>I want to write a test using PHPUnit which includes a check to make sure that a value is either a <code>string</code> <em>or</em> <code>NULL</code>.</p>
  
  <p>AFAIK, I can write such a test like so:</p>
  
  <pre><code>if (is_string($value) || is_null($value)) { 
      $result = TRUE; 
  } else { 
      $result = FALSE; 
  } 
  
  $this-&gt;assertTrue($result);
  </code></pre>
  
  <p>However, I've seen that PHPUnit has a <code>logicalOr()</code> method, which I don't know if I should be using to make a more 'native' test? And if I should be using it, I can't figure out how to do so...</p>