Skip to content

Commit 261c6e3

Browse files
authored
Merge pull request #3 from peter279k/test_enhancement
Test enhancement
2 parents 86132ce + cbb9b1a commit 261c6e3

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
language: php
22
dist: trusty
33
php:
4-
- '5.6'
54
- '7.0'
65
- '7.1'
6+
- '7.2'
7+
- nightly
78
- 'hhvm'
9+
matrix:
10+
allow_failures:
11+
- php: nightly
812
install:
9-
- composer update
13+
- composer install
1014
script:
1115
- ./vendor/bin/phpunit --coverage-clover ./tests/Logs/clover.xml
1216
after_script:
13-
- php vendor/bin/php-coveralls -v
17+
- php vendor/bin/php-coveralls -v

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@
88
"php": ">=5.6"
99
},
1010
"require-dev": {
11-
"phpunit/phpunit": "^5.7",
11+
"phpunit/phpunit": "^6.5",
1212
"php-coveralls/php-coveralls": "^2.1"
1313
},
1414
"autoload": {
1515
"psr-4": {
1616
"DivineOmega\\DOFileCache\\": "src/"
1717
}
1818
},
19+
"autoload-dev": {
20+
"psr-4": {
21+
"DivineOmega\\DOFileCache\\Tests\\": "tests/"
22+
}
23+
},
1924
"extra": {
2025
"branch-alias": {
2126
"dev-master": "1.0-dev"

phpunit.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
</whitelist>
2626
</filter>
2727
<php>
28-
28+
2929
</php>
30-
</phpunit>
30+
</phpunit>

tests/Functional/CacheStorageAndRetrievalTest.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\DOFileCache\Tests;
4+
35
use PHPUnit\Framework\TestCase;
46

57
final class CacheStorageAndRetrievalTest extends TestCase

tests/Unit/BasicTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
22

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

5-
final class BasicTests extends TestCase
7+
final class BasicTest extends TestCase
68
{
79
private $cache = null;
810

0 commit comments

Comments
 (0)