public function testFullMethodsDataEntry() { $client = new Geckoboard(); $this->assertSame('foo', $client->setApiKey('foo')->getApiKey()); $config = new Collection(array('timeout' => 10, 'connect_timeout' => 1)); $this->assertSame($config, $client->setGuzzleConfig($config)->getGuzzleConfig()); $this->assertSame(10, $client->getGuzzleConfig('timeout')); }
public function __construct() { parent::__construct(); $client = \Mockery::mock('stdClass'); $client->shouldReceive('post->send')->once(); $this->client = $client; }