mikehaertl\shellcommand\Command::getExecuted PHP Méthode

getExecuted() public méthode

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

Usage Example

 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());
 }