/** * @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"); }
/** * 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); }