public function it_checks_if_recipient_types_are_equal() { $this->beConstructedThrough('to'); $this->equals(RecipientType::to())->shouldReturn(true); $this->equals(RecipientType::cc())->shouldReturn(false); $this->equals(RecipientType::bcc())->shouldReturn(false); }
public function it_should_get_recipient_type() { $this->beConstructedWith('John Doe', '*****@*****.**', RecipientType::bcc()); $this->getType()->equals(RecipientType::to())->shouldReturn(false); $this->getType()->equals(RecipientType::bcc())->shouldReturn(true); }