File tree 11 files changed +38
-14
lines changed
11 files changed +38
-14
lines changed Original file line number Diff line number Diff line change
1
+ /vendor
Original file line number Diff line number Diff line change
1
+ # docs available at http://docs.travis-ci.com/user/languages/php/
2
+ # example available at https://github.com/travis-ci/travis-ci-php-example
3
+ language : php
4
+
5
+ before_script :
6
+ - composer self-update
7
+
8
+ install :
9
+ - composer install
10
+ # TODO optionally install geos library
11
+ # TODO optionally set up a postgis database for testing
12
+
13
+ script : cd tests && phpunit --verbose --colors --stderr tests
14
+
15
+ # run tests on the following versions
16
+ php :
17
+ - 5.5
18
+ - 5.4
19
+ - 5.3
20
+ - hhvm
Original file line number Diff line number Diff line change 11
11
{
12
12
"name" :" Patrick Hayes"
13
13
}
14
- ]
14
+ ],
15
+ "require-dev" : {
16
+ "phpunit/phpunit" : " 4.1.*"
17
+ }
15
18
}
Original file line number Diff line number Diff line change 1
- POLYGON EMPTY
1
+ POLYGON EMPTY
Original file line number Diff line number Diff line change 1
1
<?php
2
2
require_once ('../geoPHP.inc ' );
3
- require_once ('PHPUnit/Autoload.php ' );
4
-
5
3
class Tests_20120702 extends PHPUnit_Framework_TestCase {
6
4
7
5
function setUp () {
Original file line number Diff line number Diff line change 1
1
<?php
2
2
require_once ('../geoPHP.inc ' );
3
- require_once ('PHPUnit/Autoload.php ' );
4
-
5
3
class AdaptersTests extends PHPUnit_Framework_TestCase {
6
4
7
5
function setUp () {
@@ -14,6 +12,7 @@ function testAdapters() {
14
12
if ($ parts [0 ]) {
15
13
$ format = $ parts [1 ];
16
14
$ input = file_get_contents ('./input/ ' .$ file );
15
+ echo "\nloading: " . $ file . " for format: " . $ format ;
17
16
$ geometry = geoPHP::load ($ input , $ format );
18
17
19
18
// Test adapter output and input. Do a round-trip and re-test
Original file line number Diff line number Diff line change 1
1
<?php
2
2
require_once ('../geoPHP.inc ' );
3
- require_once ('PHPUnit/Autoload.php ' );
4
-
5
3
class AliasesTests extends PHPUnit_Framework_TestCase {
6
4
7
5
function setUp () {
@@ -14,6 +12,7 @@ function testAliases() {
14
12
if ($ parts [0 ]) {
15
13
$ format = $ parts [1 ];
16
14
$ value = file_get_contents ('./input/ ' .$ file );
15
+ echo "\nloading: " . $ file . " for format: " . $ format ;
17
16
$ geometry = geoPHP::load ($ value , $ format );
18
17
19
18
$ aliases = array (
Original file line number Diff line number Diff line change
1
+ <?php
2
+ require_once ('../geoPHP.inc ' );
3
+ if (!@include __DIR__ . '/../../vendor/autoload.php ' ) {
4
+ die ('You must set up the project dependencies, run the following commands:
5
+ wget http://getcomposer.org/composer.phar
6
+ php composer.phar install ' );
7
+ }
Original file line number Diff line number Diff line change 1
1
<?php
2
2
require_once ('../geoPHP.inc ' );
3
- require_once ('PHPUnit/Autoload.php ' );
4
-
5
3
class GeosTests extends PHPUnit_Framework_TestCase {
6
4
7
5
function setUp () {
@@ -14,6 +12,7 @@ function testGeos() {
14
12
if ($ parts [0 ]) {
15
13
$ format = $ parts [1 ];
16
14
$ value = file_get_contents ('./input/ ' .$ file );
15
+ echo "\nloading: " . $ file . " for format: " . $ format ;
17
16
$ geometry = geoPHP::load ($ value , $ format );
18
17
19
18
$ geosMethods = array (
Original file line number Diff line number Diff line change 1
1
<?php
2
2
require_once ('../geoPHP.inc ' );
3
- require_once ('PHPUnit/Autoload.php ' );
4
-
5
3
class MethodsTests extends PHPUnit_Framework_TestCase {
6
4
7
5
function setUp () {
@@ -14,6 +12,7 @@ function testMethods() {
14
12
if ($ parts [0 ]) {
15
13
$ format = $ parts [1 ];
16
14
$ value = file_get_contents ('./input/ ' .$ file );
15
+ echo "\nloading: " . $ file . " for format: " . $ format ;
17
16
$ geometry = geoPHP::load ($ value , $ format );
18
17
19
18
$ methods = array (
Original file line number Diff line number Diff line change 1
1
<?php
2
2
require_once ('../geoPHP.inc ' );
3
- require_once ('PHPUnit/Autoload.php ' );
4
-
5
3
class PlaceholdersTests extends PHPUnit_Framework_TestCase {
6
4
7
5
function setUp () {
@@ -14,6 +12,7 @@ function testPlaceholders() {
14
12
if ($ parts [0 ]) {
15
13
$ format = $ parts [1 ];
16
14
$ value = file_get_contents ('./input/ ' .$ file );
15
+ echo "\nloading: " . $ file . " for format: " . $ format ;
17
16
$ geometry = geoPHP::load ($ value , $ format );
18
17
19
18
$ placeholders = array (
You can’t perform that action at this time.
0 commit comments