/** * @expectedException \Tasker\Exception\UnExpectedException */ public function testThrowAnException() { ExceptionHelper::setConfigPath(__DIR__ . '/config.php'); ExceptionHelper::setEnvironmentVariable('APP_ENV'); throw new UnExpectedException('this is a test', __FILE__, __LINE__); }
public function setEnvironmentVariable($environmentVariable = 'APP_ENV') { HelperTool::setEnvironmentVariable($environmentVariable); ExceptionHelper::setEnvironmentVariable($environmentVariable); }