@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Testing that PhabricatorEnv::getEnvConfig throws an exception if config option is not found.

Summary: Unit test for T2345

Test Plan: Ran unit tests, checked that it passed.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4552

authored by

Nick Pellegrino and committed by
epriestley
f0682941 bb175655

+18
+18
src/infrastructure/env/__tests__/PhabricatorEnvTestCase.php
··· 156 156 unset($outer); 157 157 } 158 158 159 + public function testGetEnvExceptions() { 160 + $caught = null; 161 + try { 162 + PhabricatorEnv::getEnvConfig("not.a.real.config.option"); 163 + } catch (Exception $ex) { 164 + $caught = $ex; 165 + } 166 + $this->assertEqual(true, $caught instanceof Exception); 167 + 168 + $caught = null; 169 + try { 170 + PhabricatorEnv::getEnvConfig("test.value"); 171 + } catch (Exception $ex) { 172 + $caught = $ex; 173 + } 174 + $this->assertEqual(false, $caught instanceof Exception); 175 + } 176 + 159 177 }