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 setConfigPath($configPathString = null)
 {
     $this->configPathString = $configPathString;
     HelperTool::setConfigPath($configPathString);
     ExceptionHelper::setConfigPath($configPathString);
 }