mikehaertl\shellcommand\Command::getExecuted PHP Method

getExecuted() public method

public getExecuted ( ) : string
return string whether the command was successfully executed
    public function getExecuted()
    {
        return $this->_executed;
    }

Usage Example

Exemplo n.º 1
0
 public function testCanProvideProcDir()
 {
     $tmpDir = sys_get_temp_dir();
     $command = new Command('pwd');
     $command->procCwd = $tmpDir;
     $this->assertFalse($command->getExecuted());
     $this->assertTrue($command->execute());
     $this->assertTrue($command->getExecuted());
     $this->assertEquals($tmpDir, $command->getOutput());
 }