public setOrderBy ( string $orderBy ) | ||
$orderBy | string |
public function setOrderBy($orderBy)
{
$this->orderBy = $orderBy;
return $this;
}
/** * 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(); }