clearProperty() public static method

public static clearProperty ( ) : void
return void
Example #1
0
 public function tearDown()
 {
     parent::tearDown();
     Config::clearProperty('namespace', 'controller');
     Config::clearProperty('debug');
     Config::clearProperty('callback', 'afterControllerInit');
 }
Example #2
0
 protected function tearDown()
 {
     Config::clearProperty('logger', 'default', 'minimal_levels');
     StreamStub::unregister();
     parent::tearDown();
 }
Example #3
0
 /**
  * @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');
 }
Example #5
0
 /**
  * @test
  */
 public function shouldReturnAllConfigValues()
 {
     // given
     Config::overrideProperty('key')->with('value');
     //when
     $values = Config::all();
     //then
     $this->assertEquals('value', $values['key']);
     Config::clearProperty('key');
     // cleanup
 }
Example #6
0
 /**
  * @tearDown
  */
 protected function tearDown()
 {
     Config::clearProperty('language');
     I18n::reset();
 }
Example #7
0
 public function tearDown()
 {
     parent::tearDown();
     Config::clearProperty('namespace', 'controller');
 }