Sets the value of orderBy.
public setOrderBy ( string $orderBy ) | ||
$orderBy | string |
/** * 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(); }