CacheTool\Command\CommandTest::runCommand PHP Метод

runCommand() публичный Метод

public runCommand ( $cmd )
    public function runCommand($cmd)
    {
        $app = new Application(new Config(array('adapter' => 'cli')));
        $app->setAutoExit(false);
        $input = new StringInput($cmd);
        $output = new BufferedOutput();
        $app->run($input, $output);
        return $output->fetch();
    }