public function test_by_place_id_return_one_result_only()
 {
     $this->given($this->givenGoogleReturns('{
                 "results" : [],
                 "status" : "OK"
             }'), $addressFactory = new \mock\Rezzza\GoogleGeocoder\Model\AddressFactory(), $expectedResult = new \Rezzza\GoogleGeocoder\Model\AddressCollection([new \Rezzza\GoogleGeocoder\Model\Address('LKDJFLSDK87987'), new \Rezzza\GoogleGeocoder\Model\Address('KSDK898hjhYUY787')]), $this->calling($addressFactory)->createFromDecodedResultCollection = $expectedResult, $sut = new SUT($this->mockClient, $addressFactory))->when($result = $sut->findByPlaceIdWithLanguage('LJLJ898', 'fr'))->then->object($result)->isInstanceOf('Rezzza\\GoogleGeocoder\\Model\\Address');
 }
 public function test_locality_by_coordinates_returns_null_if_google_no_result()
 {
     $this->given($this->givenGoogleClientThrows(new \Rezzza\GoogleGeocoder\Exception\GoogleGeocodeNoResultException()), $addressFactory = new \mock\Rezzza\GoogleGeocoder\Model\AddressFactory(), $sut = new SUT($this->mockClient, $addressFactory))->when($result = $sut->findLocalityByCoordinatesWithLanguage(51.67849494, 3.848474747, 'fr'))->then->variable($result)->isNull();
 }