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