public function test_run_with_exec() { $handler = new Accumulator(); $process = new Process(Command::make('exec ls')->withArgs('-l')); $process->runAsync($handler)->wait(); $this->assertEquals(0, $process->getExitCode()); $this->assertEmpty($handler->stderr); $this->assertNotEmpty($handler->stdout); $this->assertFalse($process->isAlive()); }