mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
Test enhancement
This commit is contained in:
parent
4c9ea18a65
commit
7e735e17ea
10
.travis.yml
10
.travis.yml
@ -1,18 +1,24 @@
|
||||
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints
|
||||
language: php
|
||||
dist: precise
|
||||
|
||||
# list any PHP version you want to test against
|
||||
php:
|
||||
- 5.3
|
||||
- 5.4
|
||||
- 5.5
|
||||
- 5.6
|
||||
- 7.0
|
||||
- 7.1
|
||||
- 7.2
|
||||
- nightly
|
||||
- hhvm
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- php: hhvm
|
||||
- php: nightly
|
||||
include:
|
||||
- php: 5.3
|
||||
dist: precise
|
||||
|
||||
before_script:
|
||||
- composer install
|
||||
|
||||
@ -16,11 +16,19 @@
|
||||
"php": ">=5.3.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "~4.8.35"
|
||||
"phpunit/phpunit": "^4.8.35 || ^5.5 || ^6.5"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-mbstring": "It can support the multiple bytes string length."
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
"Valitron": "src/"
|
||||
"psr-4": {
|
||||
"Valitron\\": "src/Valitron"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Valitron\\": "tests/Valitron"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@ -15,4 +15,12 @@
|
||||
<directory suffix="Test.php">tests/Valitron</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist>
|
||||
<directory suffix=".php">src/</directory>
|
||||
</whitelist>
|
||||
<blacklist>
|
||||
<directory suffix=".php">vendor/</directory>
|
||||
</blacklist>
|
||||
</filter>
|
||||
</phpunit>
|
||||
|
||||
@ -16,4 +16,4 @@ if($vendorPos !== false) {
|
||||
$loader = require __DIR__.'/../vendor/autoload.php';
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/Valitron/BaseTestCase.php';
|
||||
require_once __DIR__ . '/Valitron/BaseTestCase.php';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user