Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…k-parser

* '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
  • Loading branch information
tufanbarisyildirim committed Feb 13, 2019
2 parents 8434429 + 9adae61 commit 27369fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ php:
- 5.3
- 5.4
- 5.5
- hhvm
- 5.6
- 7.0
- 7.1

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

script: phpunit --configuration phpunit.xml --coverage-text
script: vendor/bin/phpunit --configuration phpunit.xml --coverage-text

notifications:
email: false
email: false
11 changes: 7 additions & 4 deletions examples/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
* file that was distributed with this source code.
*/

spl_autoload_register(function ($className) {
// Test purpose
require_once __DIR__.'/../vendor/autoload.php';

//spl_autoload_register(function ($className) {
// Fix for OSX and *nix
$className = str_replace('\\', DIRECTORY_SEPARATOR, $className);
include(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . $className . ".php");
});
// $className = str_replace('\\', DIRECTORY_SEPARATOR, $className);
// include(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . $className . ".php");
//});

0 comments on commit 27369fe

Please sign in to comment.