SAML2\XML\ChunkTest::setUp PHP Method

setUp() public method

Make a new Chunk object to test with
public setUp ( )
    public function setUp()
    {
        $attribute = new Attribute();
        $attribute->Name = 'TheName';
        $attribute->NameFormat = 'TheNameFormat';
        $attribute->FriendlyName = 'TheFriendlyName';
        $attribute->AttributeValue = array(new AttributeValue('FirstValue'), new AttributeValue('SecondValue'));
        $document = DOMDocumentFactory::fromString('<root />');
        $attributeElement = $attribute->toXML($document->firstChild);
        $this->chunk = new Chunk($attributeElement);
    }