public function test_run() { $cmd = Command::make('ls')->withOptions(['-l']); $handler = new Accumulator(); $process = new Process($cmd); $process->runAsync($handler); $process->wait(); $this->assertEquals(0, $process->getExitCode()); $this->assertCount(0, $handler->stderr); $this->assertGreaterThan(0, count($handler->stdout)); $this->assertFalse($process->isAlive()); }