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