Ejemplo n.º 1
0
 public function testConstruct()
 {
     $o = new Mtgim_Api_Client('testKey', 'testHash');
     $this->assertEquals('testKey', $o->getAccessKey());
     $this->assertEquals('testHash', $o->getSecret());
     $this->assertInstanceOf('Mtgim_Api_Adapter_Curl', $o->getAdapter());
     $p = new StdClass();
     $o = new Mtgim_Api_Client('testKey', 'testHash', $p);
     $this->assertEquals('testKey', $o->getAccessKey());
     $this->assertEquals('testHash', $o->getSecret());
     $this->assertNotInstanceOf('Mtgim_Api_Adapter_Curl', $o->getAdapter());
     $this->assertEquals($p, $o->getAdapter());
 }