src/RoboFile.dist.php
public function sendCodeceptionOutputToSlack($slackChannel, $slackToken = null, $codeceptionOutputFolder = null)
    {
        if (is_null($slackToken)) {
            $this->say('we are in Travis environment, getting token from ENV');

            // Remind to set the token in repo Travis settings,
            // see: http://docs.travis-ci.com/user/environment-variables/#Using-Settings
            $slackToken = getenv('SLACK_ENCRYPTED_TOKEN');
        }

        $result = $this
            ->taskSendCodeceptionOutputToSlack(
                $slackChannel,
                $slackToken,
                $codeceptionOutputFolder
            )
            ->run();

        return $result;
    }
public function sendCodeceptionOutputToSlack($slackChannel, $slackToken = null, $codeceptionOutputFolder = null)
    {
        if (is_null($slackToken)) {
            $this->say('we are in Travis environment, getting token from ENV');

            // Remind to set the token in repo Travis settings,
            // see: http://docs.travis-ci.com/user/environment-variables/#Using-Settings
            $slackToken = getenv('SLACK_ENCRYPTED_TOKEN');
        }

        $result = $this
            ->taskSendCodeceptionOutputToSlack(
                $slackChannel,
                $slackToken,
                $codeceptionOutputFolder
            )
            ->run();

        return $result;
    }
public function sendCodeceptionOutputToSlack ( $ slackChannel , $ slackToken = null , $ codeceptionOutputFolder = null ) { if ( is_null ( $ slackToken ) ) { $ this -> say ( 'we are in Travis environment, getting token from ENV' ) ; // Remind to set the token in repo Travis settings, // see: http://docs.travis-ci.com/user/environment-variables/#Using-Settings $ slackToken = getenv ( 'SLACK_ENCRYPTED_TOKEN' ) ; } $ result = $ this -> taskSendCodeceptionOutputToSlack ( $ slackChannel , $ slackToken , $ codeceptionOutputFolder ) -> run ( ) ; return $ result ; }
Sends Codeception errors to Slack

@param string $slackChannel            The Slack Channel ID
@param string $slackToken              Your Slack authentication token.
@param string $codeceptionOutputFolder Optional. By default tests/_output

@return mixed
Sends Codeception errors to Slack