PHP Class spec\Crummy\Phlack\Message\Collection\AttachmentCollectionSpec

Inheritance: extends PhpSpec\ObjectBehavior
ファイルを表示 Open project: mcrumm/phlack

Public Methods

Method Description
it_accepts_attachment_interface_elements ( Crummy\Phlack\Message\AttachmentInterface $attachment )
it_adds_attachments_to_the_collection ( Crummy\Phlack\Message\AttachmentInterface $attachment )
it_does_not_allow_other_elements_during_add ( Crummy\Phlack\Message\FieldInterface $field )
it_does_not_allow_other_elements_during_set ( Crummy\Phlack\Message\FieldInterface $field )
it_is_an_encodable_collection ( )
it_sets_attachments_to_the_collection ( Crummy\Phlack\Message\AttachmentInterface $attachment )
let ( Crummy\Phlack\Message\AttachmentInterface $attachment )

Method Details

it_accepts_attachment_interface_elements() public method

public it_accepts_attachment_interface_elements ( Crummy\Phlack\Message\AttachmentInterface $attachment )
$attachment Crummy\Phlack\Message\AttachmentInterface

it_adds_attachments_to_the_collection() public method

public it_adds_attachments_to_the_collection ( Crummy\Phlack\Message\AttachmentInterface $attachment )
$attachment Crummy\Phlack\Message\AttachmentInterface

it_does_not_allow_other_elements_during_add() public method

public it_does_not_allow_other_elements_during_add ( Crummy\Phlack\Message\FieldInterface $field )
$field Crummy\Phlack\Message\FieldInterface

it_does_not_allow_other_elements_during_set() public method

public it_does_not_allow_other_elements_during_set ( Crummy\Phlack\Message\FieldInterface $field )
$field Crummy\Phlack\Message\FieldInterface

it_is_an_encodable_collection() public method

it_sets_attachments_to_the_collection() public method

public it_sets_attachments_to_the_collection ( Crummy\Phlack\Message\AttachmentInterface $attachment )
$attachment Crummy\Phlack\Message\AttachmentInterface

let() public method

public let ( Crummy\Phlack\Message\AttachmentInterface $attachment )
$attachment Crummy\Phlack\Message\AttachmentInterface