public function setUp() { //setup mock for the adapter $this->clientMock = Mockery::mock('Http\\Adapter\\Guzzle6\\Client'); $this->resource = new SparkPost($this->clientMock, ['key' => 'SPARKPOST_API_KEY', 'async' => false]); }