value() public method

Return the value of this attribute.
public value ( ) : array
return array The value(s) of this attribute.
Ejemplo n.º 1
0
 public function testMethodValueHasResultArrayTheValuesOfTheAttribute()
 {
     $attribute = new Horde_Kolab_Server_Object_Attribute_Value($this->object, $this->composite, 'name');
     $this->object->expects($this->once())->method('getInternal')->with('name')->will($this->returnValue(array(1, 2)));
     $this->assertEquals(array(1, 2), $attribute->value());
 }