Skip to content

Commit b49c98a

Browse files
committed
Update tests to support latest psr/http-message on PHP 7.2+
1 parent 9c44721 commit b49c98a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/unit/Http/RouterTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)