Skip to content

Commit d8737f2

Browse files
committed
Test enhancement
1 parent 352dd38 commit d8737f2

File tree

5 files changed

+24
-12
lines changed

5 files changed

+24
-12
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/vendor/
22
composer.lock
33
/bin/*
4-
!/bin/.gitkeep
4+
!/bin/.gitkeep
5+
*.cache

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
language: php
2-
dist: trusty
32
php:
4-
- '5.6'
5-
- '7.0'
63
- '7.1'
74
- '7.2'
8-
- 'hhvm'
9-
os:
10-
- linux
5+
- '7.3'
6+
- '7.4'
7+
- 'nightly'
8+
matrix:
9+
allow_failures:
10+
- php: nightly
1111
install:
12-
- composer update
12+
- composer install
1313
script:
1414
- ./vendor/bin/phpunit --coverage-clover ./tests/Logs/clover.xml
1515
after_script:
16-
- php vendor/bin/php-coveralls -v
16+
- php vendor/bin/php-coveralls -v

composer.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,23 @@
99
"email": "[email protected]"
1010
}
1111
],
12-
"require": {},
12+
"require": {
13+
"php": ">=7.1"
14+
},
1315
"require-dev": {
14-
"phpunit/phpunit": "^5.7",
15-
"satooshi/php-coveralls": "^2.0"
16+
"phpunit/phpunit": "^7.0 || ^8.0",
17+
"php-coveralls/php-coveralls": "^2.0"
1618
},
1719
"autoload": {
1820
"psr-4": {
1921
"DivineOmega\\HCLParser\\": "./src/"
2022
}
2123
},
24+
"autoload-dev": {
25+
"psr-4": {
26+
"DivineOmega\\HCLParser\\HCLParser\\Tests\\": "./tests/Unit/"
27+
}
28+
},
2229
"scripts": {
2330
"post-autoload-dump": [
2431
"DivineOmega\\HCLParser\\Installer::installBinaries"

tests/Unit/BasicUsageTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace DivineOmega\HCLParser\HCLParser\Tests;
4+
35
use DivineOmega\HCLParser\HCLParser;
46
use PHPUnit\Framework\TestCase;
57

tests/Unit/InstallerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
namespace DivineOmega\HCLParser\HCLParser\Tests;
4+
35
use DivineOmega\HCLParser\Installer;
46
use PHPUnit\Framework\TestCase;
57

0 commit comments

Comments
 (0)