Esempio n. 1
0
 /**
  * @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__);
 }
Esempio n. 2
0
 public function setEnvironmentVariable($environmentVariable = 'APP_ENV')
 {
     HelperTool::setEnvironmentVariable($environmentVariable);
     ExceptionHelper::setEnvironmentVariable($environmentVariable);
 }