title: Checking for a table row using DomCrawler
body: <p>I am writing a phpunit test... on my page I have several rows, one of them is like this:</p>
  
  <pre><code>&lt;tr&gt;&lt;td&gt;MATCH&lt;small&gt;&lt;span class="glyphicon glyphicon-pushpin"&gt;&lt;/span&gt;&lt;/small&gt;&lt;/td&gt;&lt;/tr&gt;
  </code></pre>
  
  <p>Some are like this:</p>
  
  <pre><code>&lt;tr&gt;&lt;td&gt;NOT A MATCH 1&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;NOT A MATCH 2&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;NOT A MATCH 3&lt;/td&gt;&lt;/tr&gt;
  </code></pre>
  
  <p>how can I run a test to check that the row with the pushpin glyphicon is the one with "MATCH"?</p>
  
  <p>Basically I want the test to confirm that the glyphicon is appearing on the correct row, and just having something like <code>$crawler-&gt;filter('small:contains("' . $glyphCode . '")')-&gt;count()</code> only confirms that the glyph exists - not that it's in the right place.</p>
  
  <p>Any help appreciated, thank you.</p>