function it_should_resolve_parameters_in_the_correct_order()
{
$attributes = ['displayName' => '%lastname%, %firstname% as %username%', 'firstName' => '%foo%', 'lastName' => '%bar%', 'username' => '%city%', 'city' => 'Hill Valley'];
$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');
}