Exemplo n.º 1
0
 /**
  * Test the getter/setter for the integration alias
  * @covers \DuoAuth\Integration::setAlias
  * @covers \DuoAuth\Integration::getAlias
  */
 public function testGetSetAlias()
 {
     $alias = 'testalias';
     $config = array();
     $int = new \DuoAuth\Integration($config);
     $int->setAlias($alias);
     $this->assertEquals($int->getAlias(), $alias);
 }
Exemplo n.º 2
0
 /**
  * Test the getter/setter for the hostname
  * @covers \DuoAuth\Integration::getHostname
  * @covers \DuoAuth\Integration::setHostname
  */
 public function testGetSetHostname()
 {
     $hostname = 'testhost.com';
     $config = array();
     $int = new \DuoAuth\Integration($config);
     $int->setHostname($hostname);
     $this->assertEquals($hostname, $int->getHostname());
 }