Skip to content

Instantly share code, notes, and snippets.

@2bj
Forked from nike-17/gist:2043592
Created June 4, 2013 13:32
Show Gist options
  • Save 2bj/5705937 to your computer and use it in GitHub Desktop.
Save 2bj/5705937 to your computer and use it in GitHub Desktop.
if (Kohana::$environment == Kohana::TESTING)
{
Kohana::$is_cli = false;
}
else
{
echo Request::factory()
->execute()
->send_headers()
->body();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment