clearProperty() публичный статический Метод

public static clearProperty ( ) : void
Результат void
Пример #1
0
 public function tearDown()
 {
     parent::tearDown();
     Config::clearProperty('namespace', 'controller');
     Config::clearProperty('debug');
     Config::clearProperty('callback', 'afterControllerInit');
 }
Пример #2
0
 protected function tearDown()
 {
     Config::clearProperty('logger', 'default', 'minimal_levels');
     StreamStub::unregister();
     parent::tearDown();
 }
Пример #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');
 }
Пример #4
0
 public function tearDown()
 {
     Route::$validate = true;
     parent::tearDown();
     Config::clearProperty('namespace', 'controller');
 }
Пример #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
 }
Пример #6
0
 /**
  * @tearDown
  */
 protected function tearDown()
 {
     Config::clearProperty('language');
     I18n::reset();
 }
Пример #7
0
 public function tearDown()
 {
     parent::tearDown();
     Config::clearProperty('namespace', 'controller');
 }