Skip to content

Commit 0d5423d

Browse files
committed
Updated test environment because Travis still doesn't work yet
1 parent f7c450c commit 0d5423d

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

.travis.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ php:
77
- hhvm
88

99
before_script:
10-
- composer self-update
11-
- composer install --prefer-source --no-interaction --dev
10+
- composer install --prefer-dist --dev
1211

13-
script: phpunit
12+
script:
13+
- ./vendor/bin/phpunit
14+
- ./vendor/bin/phpcs --standard=PSR2 --encoding=utf-8 -p src/ tests/
15+
16+
matrix:
17+
allow_failures:
18+
- php: hhvm
19+
fast_finish: true

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"require-dev": {
1919
"phpunit/phpunit": "4.5.*",
20+
"phpunit/php-code-coverage": "2.x",
2021
"openlss/lib-array2xml": "~0.0.9"
2122
},
2223
"autoload": {
@@ -25,8 +26,8 @@
2526
}
2627
},
2728
"autoload-dev": {
28-
"psr-0": {
29-
"PE\\": "tests"
29+
"psr-4": {
30+
"PE\\": "tests/PE"
3031
}
3132
}
3233
}

tests/bootstrap.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
define('ROOT_DIR', dirname(TESTS_DIR));
99

1010
// Load our autoloader, and add our Test class namespace
11-
$autoloader = require(ROOT_DIR . '/vendor/autoload.php');
11+
$autoloader = require(ROOT_DIR . '/vendor/autoload.php');
12+
$autoloader->add('PE', __DIR__);

0 commit comments

Comments
 (0)