function it_should_url_encode_property_values_when_represented_as_a_string() { $data = array('foo' => 'foo + bar (baz)'); $this->beConstructedWith($data); $this->__toString()->shouldReturn('foo=foo%20%2B%20bar%20%28baz%29'); }