Sets the options from the param and defaults for the SparkPost object.
public setOptions ( array $options ) | ||
$options | array | - either an string API key or an array of options |
/** * @expectedException \Exception */ public function testSetBadOptions() { NSA::setProperty($this->resource, 'options', []); $this->resource->setOptions(['not' => 'SPARKPOST_API_KEY']); }