Compare commits
9 commits
master
...
developmen
Author | SHA1 | Date | |
---|---|---|---|
b66d342eb6 | |||
33b799f576 | |||
09df808c96 | |||
efe5d360d9 | |||
4f7846d20d | |||
e7a14879ae | |||
669692cc7a | |||
d9f7efe9ea | |||
e9044ed5d9 |
6 changed files with 28 additions and 24 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
composer.lock
|
||||
vendor
|
25
.travis.yml
25
.travis.yml
|
@ -1,16 +1,16 @@
|
|||
language: php
|
||||
|
||||
php:
|
||||
- 5.3
|
||||
- 5.4
|
||||
- 5.5
|
||||
- 5.6
|
||||
- hhvm
|
||||
- hhvm-nightly
|
||||
dist: trusty
|
||||
sudo: required
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- php: hhvm-nightly
|
||||
include:
|
||||
- php: 5.3
|
||||
dist: precise
|
||||
- php: 5.4
|
||||
- php: 5.5
|
||||
- php: 5.6
|
||||
- php: 7.0
|
||||
- php: 7.1
|
||||
|
||||
install:
|
||||
- composer install
|
||||
|
@ -20,7 +20,8 @@ before_script:
|
|||
- cd tests
|
||||
|
||||
script:
|
||||
- phpunit --colors --coverage-clover /home/travis/build/joshtronic/php-googleplaces/build/logs/clover.xml .
|
||||
- phpunit --colors --coverage-clover ../build/logs/clover.xml .
|
||||
|
||||
after_success:
|
||||
- php ../vendor/bin/coveralls --config ../.coveralls.yml -v
|
||||
- cd ..
|
||||
- php vendor/bin/coveralls --config .coveralls.yml -v
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
github: joshtronic
|
12
README.md
12
README.md
|
@ -1,14 +1,8 @@
|
|||
# php-googleplaces
|
||||
|
||||
[][travis]
|
||||
[][coveralls]
|
||||
[][packagist]
|
||||
[][gittip]
|
||||
|
||||
[travis]: http://travis-ci.org/joshtronic/php-googleplaces
|
||||
[coveralls]: https://coveralls.io/r/joshtronic/php-googleplaces
|
||||
[packagist]: https://packagist.org/packages/joshtronic/php-googleplaces
|
||||
[gittip]: https://www.gittip.com/joshtronic/
|
||||
[](https://travis-ci.org/joshtronic/php-googleplaces)
|
||||
[](https://coveralls.io/github/joshtronic/php-googleplaces?branch=master)
|
||||
[](https://packagist.org/packages/joshtronic/php-googleplaces)
|
||||
|
||||
PHP Wrapper for the Google Places API.
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"php": ">=5.3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"satooshi/php-coveralls": "dev-master"
|
||||
"satooshi/php-coveralls": "1.0.*"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {"joshtronic\\": "src/"}
|
||||
|
|
|
@ -3,6 +3,10 @@
|
|||
require_once '../src/GooglePlaces.php';
|
||||
require_once '../src/GooglePlacesClient.php';
|
||||
|
||||
if (!class_exists('\PHPUnit_Framework_TestCase') && class_exists('\PHPUnit\Framework\TestCase')) {
|
||||
class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');
|
||||
}
|
||||
|
||||
class GooglePlacesTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
private $places;
|
||||
|
@ -15,7 +19,11 @@ class GooglePlacesTest extends PHPUnit_Framework_TestCase
|
|||
|
||||
private function clientSetUp($next = false)
|
||||
{
|
||||
$client = $this->getMock('GooglePlacesClient', array('get'));
|
||||
if (version_compare(PHPUnit_Runner_Version::id(), '5.4', '<=')) {
|
||||
$client = $this->getMock('GooglePlacesClient', array('get'));
|
||||
} else {
|
||||
$client = $this->createMock('GooglePlacesClient');
|
||||
}
|
||||
|
||||
$client
|
||||
->expects($this->once())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue