Callback called before any specs processing.

@param array $args The suite arguments.
163317
public function start($args)
    {
        parent::start($args);
        if (!$this->_header) {
            return;
        }
        $this->write($this->kahlan() . "\n\n");
        $this->write($this->kahlanBaseline() . "\n\n", 'dark-grey');
        $this->write("src directory  : ", 'blue');
        $this->write(join(', ', array_map('realpath', $this->_srcDir)) . "\n");
        $this->write("spec directory : ", 'blue');
        $this->write(join(', ', array_map('realpath', $this->_specDir)) . "\n");
    }
265931
public function afterUpdate(array &$args) {
        foreach ($this->_affectedRows as $row) {
            foreach ($this->_newValues as $key => $value) {
                // compare the old and new values
                if ($row->$key != $value) {
                    $this->_deleteFile($row->$key);
                }
            }
        }
    }
1146541
public function handle($args)
    {
        // Starting point!
        $this->printer->out("\n\n".'Collecting CodeCoverage information...');

        // Just collect or also send?
        if (array_key_exists('send', $args) && $args['send'] == false) {
            // In some point we may only want to generate the payload
            // so if 'send' parameter exists and set to false we'll only
            // collect and write code-coverage payload
            $this->collectAndWriteCoverage($args);
        } else {
            // Default is to collect and send
            $this->collectAndSendCoverage($args);
        }

        // Done
        $this->printer->out('Done.');
    }
565119
public function main(array $args = array()) {
        Garp_Cli::lineOut('Welcome to the Garp interactive shell.', Garp_Cli::YELLOW);
        Garp_Cli::lineOut('Use Ctrl-C to quit.');

        $this->_setErrorHandler();
        $this->_tick();
    }
3679
public function run(array $args) {
		foreach($this->calls as $call) {
			if($call instanceof \SuperClosure\SerializableClosure)
				$call = $call->getClosure();
			$res = call_user_func_array($call, array_merge([$this], $args));
			$this->executed++;
			if($res !== null)
				return $res;
			if(!$this->continue)
				return;
		}
	}
1213882
public function set($callback, $args = [])
    {
        if (!$this->app) {
            throw new Exception(['Call-back must be part of a RenderTree']);
        }

        if ($this->app->is_rendering) {
            return parent::set($callback, $args);
        }

        $this->app->addHook('beforeRender', function (...$args) use ($callback) {
            array_shift($args); // Hook will have first argument pointing to the app. We don't need that.
            return parent::set($callback, $args);
        }, $args);
    }
714700
public function handle(array $args = [])
    {
        // remove source file name from argv
        $source = array_shift($args);

        /** @var ConsoleEvent $applicationEvent */
        $applicationEvent = $this->getApplicationEvent();
        $applicationEvent->setName(self::EVENT_REQUEST_RECEIVED);
        $applicationEvent->setSourceFile($source);
        $applicationEvent->setArguments($args);
        $this->emit($applicationEvent);

        // init dispatcher
        $dispatcher = new Dispatcher($this->commands, $this->container);

        $middlewareRunner = new MiddlewareRunner($this->getMiddlewares());

        $middlewareRunner->run([$applicationEvent->getArguments()], function ($args) use ($applicationEvent, $dispatcher) {
            // dispatch command with args from cli
            $dispatcher->dispatch($args);
        });
    }
253183
public function init($args){
		$this->params = $args;
		

		$this->AUDIT_ENTITY = new AUDIT_ENTITY();
		$this->AUDIT_ENTITY->init($this->params);
		/*
		echo __METHOD__.'@'.__LINE__.'$args<pre>['.var_export($args, true).']</pre>'.'<br>'; 
		*/		
		return;
	}
1281817
public function beforeFetch(&$args) {
        $model = $args[0];
        if ($model->isCmsContext()) {
            $model = &$args[0];
            $this->bindWithChapters($model);
        }
    }
97247
protected function beforeProxy($method, $args)
    {
        // if method is defined as transaction method
        if (is_array($this->transactionMethods) && in_array($method, $this->transactionMethods)) {
            // begin transaction
            $this->db->beginTransaction();
        }
    }
1362662
public function beforeUpdate(array &$args) {
        $model = $args[0];
        $data = &$args[1];
        $where = $args[2];

        // When updating, it's quite possible {$this->_column} is not in $data.
        // If so, collect it live.
        if (empty($data[$this->_column])) {
            $row = $model->fetchRow($where);
            if ($row->{$this->_column}) {
                $data[$this->_column] = $row->{$this->_column};
            }
        }
        $this->_setBitlyUrl($data);
    }
963754
public function afterUpdate(array &$args) {
        // Check if an email address was changed. If so, send a validation email
        $data = $args[2];
        if (array_key_exists('email', $data) && $this->_validateEmail) {
            $this->_onEmailChange($data['email'], 'update');
        }
    }
47576
public static function callArgs($callback, array $args = [])
    {
        try {
            $callback = static::evaluateCallback($callback);

            return \call_user_func_array($callback, $args);
        } catch (\Exception $e) {
            $message = $e->getMessage();
        }

        if (\is_array($callback) && \is_object($callback[0])) {
            $callback[0] = \get_class($callback[0]);
        }

        throw new DcGeneralRuntimeException(
            \sprintf(
                'Execute callback %s failed - Exception message: %s',
                (\is_array($callback)
                    ? \implode('::', $callback)
                    : (\is_string($callback)
                        ? $callback
                        : \get_class(
                            $callback
                        ))),
                $message
            ),
            0,
            $e
        );
    }
309506
private function cmdCheck($args)
    {
        $cmd = new CheckCommand($this->cwd);

        return $cmd->run(array_slice($args, 1));
    }
510431
public function declareOrder(array $args = array()) {
        $args = $this->getDeclareOrder()->parameters($this->merge($args))->text();
        if ($args['return_code'] != 'SUCCESS') {
            throw new Exception($args['return_msg']);
        }
        if (!$this->verify($args)) {
            throw new Exception(
                __('verify sign error')
            );
        }
        $this->set($args);
        return $args;
    }
326314
public function beforeInsert(array &$args) {
        $data = &$args[1];
        if (!$output = $this->_fillFields($data)) {
            throw new Garp_Model_Behavior_Exception(self::EXCEPTION_NO_API_DATA);
        }
        $data = $output + $data;
    }
55401
private function throwRequired(array $args)
    {
        $missing = [];
        foreach ($this->argDefinitions as $k => $a) {
            if (empty($a['required'])
                || isset($a['default'])
                || isset($args[$k])
            ) {
                continue;
            }
            $missing[] = $this->getArgMessage($k, $args, true);
        }
        $msg = "Missing required client configuration options: \n\n";
        $msg .= implode("\n\n", $missing);
        throw new IAE($msg);
    }