Return instance of the class that processes the data
public getBatch ( ) : Elgg\Upgrade\Batch | false | ||
Результат | Elgg\Upgrade\Batch | false |
public function testCanInstantiateBatchRunner() { $this->obj->setClass('\\InvalidClass'); $this->assertFalse($this->obj->getBatch()); $this->obj->setClass(\Elgg\Upgrade\InvalidBatch::class); $this->assertFalse($this->obj->getBatch()); $this->obj->setClass(\Elgg\Upgrade\TestBatch::class); $this->assertInstanceOf(\Elgg\Upgrade\TestBatch::class, $this->obj->getBatch()); }