File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ public function setUp() {
3939
4040 return true ;
4141 }))->will ($ this ->returnSelf ());
42- $ this ->_uri ->expects ($ this ->any ())->method ('getQuery ' )->will ($ this ->returnCallback ([$ this , 'getResult ' ]));
4342 $ this ->_uri ->expects ($ this ->any ())->method ('getHost ' )->willReturn ('example.com ' );
4443 $ this ->_req ->expects ($ this ->any ())->method ('withUri ' )->will ($ this ->returnSelf ());
4544 $ this ->_req ->expects ($ this ->any ())->method ('getMethod ' )->willReturn ('GET ' );
@@ -123,11 +122,12 @@ public function testRouterGeneratesRouteParameters() {
123122 );
124123 $ conn = $ this ->getMockBuilder ('Ratchet\Mock\Connection ' )->getMock ();
125124
125+ $ this ->_uri ->expects ($ this ->once ())->method ('withQuery ' )->with ('foo=bar&baz=qux ' )->willReturnSelf ();
126+ $ this ->_req ->expects ($ this ->once ())->method ('withUri ' )->will ($ this ->returnSelf ());
127+
126128 $ router = new Router ($ this ->_matcher );
127129
128130 $ router ->onOpen ($ conn , $ this ->_req );
129-
130- $ this ->assertEquals ('foo=bar&baz=qux ' , $ this ->_req ->getUri ()->getQuery ());
131131 }
132132
133133 public function testQueryParams () {
You can’t perform that action at this time.
0 commit comments