Skip to content

Commit 27369fe

Browse files
* 'master' of https://github.com/tufanbarisyildirim/php-apk-parser: Remove HHVM Only vendor autoload autoload for vendor Composer phpunit lib PHP version change for CI
2 parents 8434429 + 9adae61 commit 27369fe

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ php:
55
- 5.3
66
- 5.4
77
- 5.5
8-
- hhvm
8+
- 5.6
9+
- 7.0
10+
- 7.1
911

1012
before_script:
1113
- curl -s http://getcomposer.org/installer | php
1214
- php composer.phar install --dev
1315

14-
script: phpunit --configuration phpunit.xml --coverage-text
16+
script: vendor/bin/phpunit --configuration phpunit.xml --coverage-text
1517

1618
notifications:
17-
email: false
19+
email: false

examples/autoload.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
spl_autoload_register(function ($className) {
12+
// Test purpose
13+
require_once __DIR__.'/../vendor/autoload.php';
14+
15+
//spl_autoload_register(function ($className) {
1316
// Fix for OSX and *nix
14-
$className = str_replace('\\', DIRECTORY_SEPARATOR, $className);
15-
include(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . $className . ".php");
16-
});
17+
// $className = str_replace('\\', DIRECTORY_SEPARATOR, $className);
18+
// include(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . $className . ".php");
19+
//});

0 commit comments

Comments
 (0)