Laravel App Cheatsheet

App::environment();  

Test equal to

App::environment('local');  
App::runningInConsole();  
App::runningUnitTests();