getSecretKey() public method

public getSecretKey ( )
コード例 #1
0
 public function testGettersAndSetters()
 {
     $this->genericConfiguration->setAccessKey('ABC');
     $this->genericConfiguration->setSecretKey('DEF');
     $this->genericConfiguration->setAssociateTag('GHI');
     $this->assertSame('ABC', $this->genericConfiguration->getAccessKey());
     $this->assertSame('DEF', $this->genericConfiguration->getSecretKey());
     $this->assertSame('GHI', $this->genericConfiguration->getAssociateTag());
 }
コード例 #2
0
 public function testGettersAndSetters()
 {
     $object = new GenericConfiguration();
     $object->setAccessKey('ABC');
     $object->setSecretKey('DEF');
     $object->setAssociateTag('GHI');
     $object->setResponseTransformer($a = new XmlToDomDocument());
     $object->setRequest($b = new GuzzleRequest($this->prophesize('\\GuzzleHttp\\ClientInterface')->reveal()));
     $this->assertSame('ABC', $object->getAccessKey());
     $this->assertSame('DEF', $object->getSecretKey());
     $this->assertSame('GHI', $object->getAssociateTag());
     $this->assertSame($a, $object->getResponseTransformer());
     $this->assertSame($b, $object->getRequest());
 }