iterAttrs() public method

Iterate over the AttrInfo objects that are contained in this fetch_request.
public iterAttrs ( )
Ejemplo n.º 1
0
 function test_requestUnlimitedValues()
 {
     $msg = new Auth_OpenID_AX_FetchRequest();
     $result = $msg->parseExtensionArgs(array('mode' => 'fetch_request', 'required' => 'foo', 'type.foo' => 'urn:foo', 'count.foo' => Auth_OpenID_AX_UNLIMITED_VALUES));
     $attrs = $msg->iterAttrs();
     $foo = $attrs[0];
     $this->assertTrue($foo->count == Auth_OpenID_AX_UNLIMITED_VALUES);
     $this->assertTrue($foo->wantsUnlimitedValues());
 }