spec\LdapTools\Object\LdapObjectSpec::it_should_be_able_to_add_multiple_values_at_once PHP Метод

it_should_be_able_to_add_multiple_values_at_once() публичный Метод

    function it_should_be_able_to_add_multiple_values_at_once()
    {
        $addresses = ['[email protected]', '[email protected]'];
        $this->addEmailAddress(...$addresses);
        $this->add('emailAddress', '[email protected]', '[email protected]', '[email protected]');
        $this->getEmailAddress()->shouldBeArray();
        $this->getEmailAddress()->shouldContain('[email protected]');
        $this->getEmailAddress()->shouldContain('[email protected]');
        $this->getEmailAddress()->shouldContain('[email protected]');
        $this->getEmailAddress()->shouldContain('[email protected]');
        $this->getEmailAddress()->shouldContain('[email protected]');
        $this->getEmailAddress()->shouldContain('[email protected]');
    }
LdapObjectSpec