Пример #1
0
 /**
  * Test we can set and get default values
  */
 public function get_and_set_defaults_test()
 {
     Remote::set_default('pickle', 'gherkin');
     $this->should('set a default value', Remote::get_default('pickle') == 'gherkin');
     Remote::set_default(array('one' => 1, 'two' => 2));
     $this->should('set an array of default values', Remote::get_default('one') == 1 && Remote::get_default('two') == 2);
 }