示例#1
0
 public function test_returns_set_xml_key()
 {
     $options = new SigningOptions();
     $options->setPrivateKey($key = TestHelper::getXmlSecurityKeyMock($this));
     $this->assertSame($key, $options->getPrivateKey());
 }
示例#2
0
 public function test_returns_set_key()
 {
     $writer = new SignatureWriter();
     $writer->setXmlSecurityKey($key = TestHelper::getXmlSecurityKeyMock($this));
     $this->assertSame($key, $writer->getXmlSecurityKey());
 }