Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Commit

Permalink
Test: Add a test case to Socket for query strs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed May 9, 2016
1 parent 6657746 commit 8ca2c43
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Test/Unit/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,20 @@ public function case_transport_secured_domain_without_port_without_endpoint()
);
}

public function case_transport_query_strings_in_the_endpoint()
{
$this->_case_transport_factory(
'wss://hoa-project.net:8889/hello/world?foo=bar&baz=qux',
[
'type' => SUT::ADDRESS_DOMAIN,
'address' => 'hoa-project.net',
'port' => 8889,
'endPoint' => '/hello/world?foo=bar&baz=qux',
'secured' => true
]
);
}

protected function _case_transport_factory($uri, array $expect)
{
return
Expand Down

0 comments on commit 8ca2c43

Please sign in to comment.