Beispiel #1
0
 /**
  * @test 
  */
 public function getSearchResultsEmptyQuery()
 {
     $urlParamsMapper = new UrlParamsMapper();
     $request = new Request();
     $request->initialize(array($urlParamsMapper->getQueryParamName() => '', $urlParamsMapper->getLanguageParamName() => ''));
     $manager = new GoogleCodeManager($request);
     $resultSet = $manager->getSearchResults();
     $this->assertFalse($resultSet->success);
     $this->assertCount(0, $resultSet->results);
     $this->assertNull($resultSet->message);
 }
Beispiel #2
0
 /**
  * @test 
  */
 public function getQueryParamName()
 {
     $this->assertEquals('q', $this->_mapper->getQueryParamName());
 }