Example #1
0
 /**
  * @dataProvider getSetFormatChoicesProvider
  * @covers \Request::getFormatChoices
  * @covers \Request::setFormatChoices
  *
  * @param array $expected
  * @param array|null $choices
  *
  * @test
  */
 public function testGetSetFormatChoices(array $expected, array $choices = null)
 {
     $request = new \Request($this->config, []);
     if ($choices) {
         $request->setFormatChoices($choices);
     }
     $this->assertEquals($expected, $request->getFormatChoices());
 }