public function testGettersAndSetters() { $method = 'basic'; $params = array('foo' => 'bar'); $info = new AuthenticationInfo(); $info->setMethod($method); $info->setParams($params); $this->assertSame($method, $info->getMethod()); $this->assertSame($params, $info->getParams()); }
public function fromArray(array $properties, $replace = false) { if (isset($properties[self::AUTHENTICATION_INFO]) && is_array($properties[self::AUTHENTICATION_INFO])) { $authenticationInfo = new AuthenticationInfo(); $authenticationInfo->fromArray($properties[self::AUTHENTICATION_INFO]); $this->setAuthenticationInfo($authenticationInfo); unset($properties[self::AUTHENTICATION_INFO]); } parent::fromArray($properties); }