public function testRadiusWithIntegerAsString()
 {
     $param = new Zend_Service_DeveloperGarden_LocalSearch_SearchParameters();
     $this->assertType('Zend_Service_DeveloperGarden_LocalSearch_SearchParameters', $param->setRadius('-100'));
 }
Пример #2
0
 /**
  * @param Zend_Service_DeveloperGarden_LocalSearch_SearchParameters $searchParameters
  */
 public function setSearchParameters(Zend_Service_DeveloperGarden_LocalSearch_SearchParameters $searchParameters)
 {
     $this->searchParameters = $searchParameters->getSearchParameters();
     $this->_searchParameters = $searchParameters;
     return $this;
 }
Пример #3
0
 /**
  * @expectedException Zend_Service_DeveloperGarden_Response_Exception
  */
 public function testLocalSearchInValid()
 {
     $searchParameters = new Zend_Service_DeveloperGarden_LocalSearch_SearchParameters();
     $searchParameters->setWhere('Berlin');
     $result = $this->service->localSearch($searchParameters);
 }