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

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

    function it_should_get_the_ldif_string_representation()
    {
        $attributes = ['givenName' => 'foo', 'sn' => 'bar', 'description' => ' space'];
        $this->setAttributes($attributes);
        $this->addComment('Add example.');
        $ldif = "# Add example.\r\n" . "dn: dc=foo,dc=bar\r\n" . "changetype: add\r\n" . "givenName: foo\r\n" . "sn: bar\r\n" . "description:: IHNwYWNl\r\n";
        $this->toString()->shouldBeEqualTo($ldif);
    }