Ejemplo n.º 1
0
 /**
  * @dataProvider getUriProvider
  */
 public function testGetUri($options, $expected, $expectedException = null)
 {
     $sut = new Dfp_Datafeed_Transfer_Adapter_Stream();
     $sut->setOptions($options);
     try {
         $uri = $sut->getUri();
     } catch (Dfp_Datafeed_Transfer_Exception $e) {
         if (!is_null($expectedException)) {
             $this->assertEquals($e->getMessage(), $expectedException);
             return;
         }
     }
     $this->assertEquals($expected, $uri);
 }