File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 <michael@wtfz.net>
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+ }
You can’t perform that action at this time.
0 commit comments