public function testAttachmentCreationFromArray()
{
$a = new Attachment(['fallback' => 'Fallback', 'text' => 'Text', 'pretext' => 'Pretext', 'color' => 'bad', 'mrkdwn_in' => ['pretext', 'text', 'fields']]);
$this->assertEquals('Fallback', $a->getFallback());
$this->assertEquals('Text', $a->getText());
$this->assertEquals('Pretext', $a->getPretext());
$this->assertEquals('bad', $a->getColor());
$this->assertEquals([], $a->getFields());
$this->assertEquals(['pretext', 'text', 'fields'], $a->getMarkdownFields());
}