Skip to content

Commit 57cdb04

Browse files
committed
Tests: Fix vendor autoloader
1 parent e552610 commit 57cdb04

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ php:
33
- '5.6'
44
- '7.0'
55
before_script:
6-
- flags="--prefer-dist"
7-
- composer install $flags
6+
- composer -n --prefer-source install --dev
87
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then wget https://phar.phpunit.de/phpunit-5.7.phar; fi
98
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then mv phpunit-5.7.phar phpunit; fi
109
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]]; then chmod +x phpunit; fi

tests/test.bootstrap.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
// Load and setup class file autloader
2525
//require_once 'PHPDraft/Core/Autoloader.php';
26-
require_once '../vendor/autoload.php';
26+
require_once $base . '/vendor/autoload.php';
2727

2828
if (defined('TEST_STATICS') === FALSE)
2929
{

0 commit comments

Comments
 (0)