title: Laravel Testing with PHPUnit assert correct order
body: <p>I have defined a scope which sorty my entities by a published_at timestamp. I wanted to write a test to ensure correct ordering.</p>
  
  <p>However I somehow fail to find a "nice" way to do this.</p>
  
  <pre><code>$novels = Novel::published()-&gt;get();
  </code></pre>
  
  <p>This is my best guess</p>
  
  <pre><code>for($i = 1; $i &lt; count($novels); $i++) 
  {
      $this-&gt;assertGreaterThanOrEqual(
          $novels-&gt;toArray()[$i - 1]['published_at'], 
          $novels-&gt;toArray()[$i]['published_at']
      );
  }
  </code></pre>
  
  <p>Can anyone provide a better way ?</p>