-
Notifications
You must be signed in to change notification settings - Fork 523
feature: remove all non-https support #567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@Nyholm test pass locally with php 5.6, do I have to do something about the coordinates ? |
Nyholm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great PR. Just remove some comments and fix that test.
| /** | ||
| * @param HttpClient $client An HTTP adapter | ||
| * @param string $sourceCountry Country biasing (optional) | ||
| * @param bool $useSsl Whether to use an SSL connection (optional) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment should be removed
src/Geocoder/Provider/MaxMind.php
Outdated
| * @param HttpClient $client An HTTP adapter. | ||
| * @param string $apiKey An API key. | ||
| * @param string $service The specific Maxmind service to use (optional). | ||
| * @param bool $useSsl Whether to use an SSL connection (optional). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment should be removed.
| { | ||
| $provider = new GoogleMaps($this->getAdapter()); | ||
| $results = $provider->geocode('Paris'); | ||
| $results = $provider->geocode('i'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should not be changed. Keep "Paris" here and we do not have to modify the rest of the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I let Paris, the test does not pass anymore because of https://maps.googleapis.com/maps/api/geocode/json?address=Paris%22 returning just one element
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is very strange... But the issue is at the geocoder service. Let's do as you do an remove 'Paris'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, you get new caches.. Please rename the file "tests/.cached_responses/0e41628de6d90aa50c426e12391617abc3ccf5ff" to "tests/.cached_responses/65760b8fc8d216f997a2e5b2ce499881426f7353".
Now it will work with "Paris"
No, you should not change any of the coordinates or addresses. I think you accidentally modified the geocode string. I wrote an inline comment about that. |
ab67066 to
3fd7fe2
Compare
|
I think the ApiResult of Arcgis are inconsistent, since it does not break on the same things everytime |
|
True. Run your tests locally. Make sure that you have the following in your phpunit.xml If the test passes, make sure to checkin the new cached response that will be created in |
|
From #567 (comment)
|
|
@Nyholm done ;) |
Nyholm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Had a small question. Doing a final review tomorrow. (Guest just arrived)
| $this->assertInstanceOf('\Geocoder\Model\Address', $result); | ||
| $this->assertEquals(33.6609389, $result->getCoordinates()->getLatitude(), '', 0.001); | ||
| $this->assertEquals(-95.555513, $result->getCoordinates()->getLongitude(), '', 0.001); | ||
| $this->assertEquals(33.660938899999998, $result->getCoordinates()->getLatitude(), '', 0.001); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need to change these coordinates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, I don't need too ;)
|
Thank you @Simperfit. Great work! |
fix #562