spec\LdapTools\Resolver\ParameterResolverSpec::it_should_handle_an_attribute_value_as_an_array PHP Метод

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

    function it_should_handle_an_attribute_value_as_an_array()
    {
        $attributes = ['displayName' => '%lastname%, %firstname% as %username%', 'firstName' => ['%foo%'], 'lastName' => '%bar%', 'username' => '%city%', 'city' => 'Hill Valley', 'foobar' => ['%foo%', '%bar%', 'bleh']];
        $parameters = ['foo' => 'Emmett', 'bar' => 'Brown'];
        $this->beConstructedWith($attributes, $parameters);
        $this->resolve()->shouldHaveKeyWithValue('displayName', 'Brown, Emmett as Hill Valley');
        $this->resolve()->shouldHaveKeyWithValue('firstName', ['Emmett']);
        $this->resolve()->shouldHaveKeyWithValue('lastName', 'Brown');
        $this->resolve()->shouldHaveKeyWithValue('username', 'Hill Valley');
        $this->resolve()->shouldHaveKeyWithValue('city', 'Hill Valley');
        $this->resolve()->shouldHaveKeyWithValue('foobar', ['Emmett', 'Brown', 'bleh']);
    }