title: How to test if string contains another string in PHPUnit?
body: <p>I can't seem to find an assertion in <a href="http://phpunit.de/manual/current/en/appendixes.assertions.html"><strong>PHPUnit</strong></a> that simply tests if a string is contained somewhere in another string. Trying to do something like this:</p>
  
  <pre><code>public function testRecipe() {
  
      $plaintext = get_bread_recipe();
  
      $this-&gt;assertStringContains('flour', $plaintext);
  
  }
  </code></pre>
  
  <p>What real assertion would I put instead of <code>assertStringContains</code> ? I would prefer not having to worry about regex in this case because there is absolutely no need for it.</p>
  
  <p>It's so simple that there must be something I have overlooked, but I just can't figure it out! Funny enough there is <code>assertStringStartsWith()</code> and <code>assertStringEndsWith()</code>!</p>
  
  <p><strong>Update:</strong> I know <code>strpos() !== false</code> could be used but I'm looking for something cleaner. If I just use vanilla PHP functions anyway what's the whole point with all the assertions then...</p>