예제 #1
0
파일: UriTest.php 프로젝트: cawaphp/cawa
 /**
  * Test that we can use an array to remove the query parameters
  *
  * @param array $data
  * @dataProvider queryParamsArrayProvider
  */
 public function testRemoveQueryFromArray(array $data)
 {
     $uri = new Uri('http://example.com/');
     foreach ($data as $name => $query) {
         $uri->removeQueries([$name]);
     }
     $this->assertNull($uri->getQuerystring());
 }