Esempio n. 1
0
 /**
  * @dataProvider buildDataProvider
  */
 public function testBuild($normalized_components, array $params, $expected_url)
 {
     $url_builder = new Builder($normalized_components);
     $actual_url = $url_builder->build($params);
     $this->assertSame($actual_url, $expected_url);
 }
Esempio n. 2
0
 /**
  * @dataProvider buildExceptionDataProvider
  * @expectedException \QATools\QATools\PageObject\Exception\MissingParametersException
  * @expectedExceptionMessage No parameters for "i_do_not_exist" masks given.
  */
 public function testBuildParamException($normalized_components, array $params)
 {
     $url_builder = new Builder($normalized_components);
     $url_builder->build($params);
 }