spec\LdapTools\Ldif\Entry\LdifEntryModifySpec::it_should_get_the_ldif_string_representation PHP Метод

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

    function it_should_get_the_ldif_string_representation()
    {
        $this->addComment("Modify entry example.");
        $this->add('phone', '555-5555');
        $this->reset('sn');
        $this->replace('givenName', 'foo');
        $this->delete('fax', '123-4567');
        $this->add('address', ['123 fake st', '456 real st']);
        $ldif = "# Modify entry example.\r\n" . "dn: dc=foo,dc=bar\r\n" . "changetype: modify\r\n" . "add: phone\r\n" . "phone: 555-5555\r\n" . "-\r\n" . "delete: sn\r\n" . "-\r\n" . "replace: givenName\r\n" . "givenName: foo\r\n" . "-\r\n" . "delete: fax\r\n" . "fax: 123-4567\r\n" . "-\r\n" . "add: address\r\n" . "address: 123 fake st\r\n" . "address: 456 real st\r\n" . "-\r\n";
        $this->toString()->shouldBeEqualTo($ldif);
    }