setOrderBy() public method

Sets the value of orderBy.
public setOrderBy ( string $orderBy )
$orderBy string
Example #1
0
 /**
  * Tests the dump() method with an invalid order
  * Should throw a \InvalidArgumentException.
  */
 public function testDumpWithInvalidOrder()
 {
     if (!method_exists($this->filesystem, 'dumpFile')) {
         $this->markTestSkipped('Test skipped as Filesystem::dumpFile() is not available in this version.');
     }
     $this->setExpectedException('\\InvalidArgumentException');
     $this->service->setOrderBy('unexistant-order');
     $this->service->dump();
 }