Skip to content

Commit ef9a246

Browse files
committed
adds testcase for #236
1 parent 0980c7d commit ef9a246

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
/**
4+
* This file is part of the Tmdb PHP API created by Michael Roterman.
5+
*
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*
9+
* @package Tmdb
10+
* @author Michael Roterman <[email protected]>
11+
* @copyright (c) 2013, Michael Roterman
12+
* @version 4.0.0
13+
*/
14+
15+
namespace Tmdb\Tests\Helper;
16+
17+
use Nyholm\Psr7\Request;
18+
use Tmdb\Helper\RequestQueryHelper;
19+
use Tmdb\Tests\TestCase as Base;
20+
21+
class RequestQueryHelperTest extends Base
22+
{
23+
/**
24+
* @test
25+
*/
26+
public function testIssue236()
27+
{
28+
$helper = new RequestQueryHelper();
29+
$request = new Request('GET', 'http://localhost');
30+
$request = $helper->withQuery($request, 'air_date.gte', 1);
31+
32+
$this->assertEquals('http://localhost?air_date.gte=1', (string)$request->getUri());
33+
}
34+
}

0 commit comments

Comments
 (0)