Ejemplo n.º 1
0
 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'));
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $client = \Mockery::mock('stdClass');
     $client->shouldReceive('post->send')->once();
     $this->client = $client;
 }