PhpBrew\Testing\CommandTestCase::assertCommandSuccess PHP Method

assertCommandSuccess() public method

public assertCommandSuccess ( $args )
    public function assertCommandSuccess($args)
    {
        try {
            if ($this->debug) {
                fwrite(STDERR, $args . PHP_EOL);
            }
            ob_start();
            $this->assertTrue($ret = parent::runCommand($args));
            $output = ob_get_contents();
            ob_end_clean();
            if ($ret === false) {
                echo '[', implode(' ', $args), ']', PHP_EOL;
                echo '===================================', PHP_EOL;
                echo $output, PHP_EOL;
                echo '===================================', PHP_EOL;
            }
        } catch (\CurlKit\CurlException $e) {
            $this->markTestIncomplete($e->getMessage());
        }
    }