taskStorage = $tasks->getTaskStorage(); $this->taskStorage->reset(); // Clear events Events::$listeners = []; $this->shellWorker = $tasks->getWorker(); } public function testClass() { $this->assertInstanceOf(ShellWorker::class, $this->shellWorker); } /* ---------------------------------- Writing and reading tasks ----------------------- */ // @todo Add lots of tests and amend ShellWorker to return results }