public function tearDown() { parent::tearDown(); Config::clearProperty('namespace', 'controller'); Config::clearProperty('debug'); Config::clearProperty('callback', 'afterControllerInit'); }
protected function tearDown() { Config::clearProperty('logger', 'default', 'minimal_levels'); StreamStub::unregister(); parent::tearDown(); }
/** * @test */ public function shouldTranslateArrayWithPseudoLocalization() { //given Config::overrideProperty('pseudo_localization')->with(true); $labels = array('key' => array('k1' => 'value', 'k2' => 'other')); $translator = new Translator('en', $labels); //when $translation = $translator->translate('key'); //then $this->assertEquals(array('k1' => 'ṽȧŀŭḗ', 'k2' => 'ǿŧħḗř'), $translation); Config::clearProperty('pseudo_localization'); }
public function tearDown() { Route::$validate = true; parent::tearDown(); Config::clearProperty('namespace', 'controller'); }
/** * @test */ public function shouldReturnAllConfigValues() { // given Config::overrideProperty('key')->with('value'); //when $values = Config::all(); //then $this->assertEquals('value', $values['key']); Config::clearProperty('key'); // cleanup }
/** * @tearDown */ protected function tearDown() { Config::clearProperty('language'); I18n::reset(); }
public function tearDown() { parent::tearDown(); Config::clearProperty('namespace', 'controller'); }