示例#1
0
 /**
  * @covers DNSMadeEasy\driver\Configuration::useSandbox
  */
 public function testUseSandbox()
 {
     $reflectionClass = new \ReflectionClass('DNSMadeEasy\\driver\\Configuration');
     $useSandbox = $reflectionClass->getProperty('_useSandbox');
     $useSandbox->setAccessible(true);
     $this->configuration->useSandbox(true);
     $this->assertTrue($useSandbox->getValue($this->configuration), "useSandbox should be true");
     $this->configuration->useSandbox(false);
     $this->assertFalse($useSandbox->getValue($this->configuration), "useSandbox should be false");
 }
示例#2
0
 /**
  * Sets whether the client should use the sandbox or not.
  * @param boolean $value Whether to use the sandbox or not.
  */
 public function useSandbox($value)
 {
     $this->_config->useSandbox($value);
 }