Skip to content

Commit 630ae4b

Browse files
committed
Test against newer PHP versions and use require/autoload-dev
1 parent 0ff48ed commit 630ae4b

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
language: php
22
dist: trusty
33
php:
4+
- "7.4"
5+
- "7.3"
6+
- "7.2"
47
- "7.1"
58
- "7.0"
69
- "5.6"

composer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,17 @@
99
"email": "haertl.mike@gmail.com"
1010
}
1111
],
12+
"require-dev": {
13+
"phpunit/phpunit": ">4.0 <8"
14+
},
1215
"autoload": {
1316
"psr-4": {
1417
"mikehaertl\\tmp\\": "src/"
1518
}
19+
},
20+
"autoload-dev": {
21+
"psr-4": {
22+
"tests\\": "tests"
23+
}
1624
}
1725
}

tests/FileTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<?php
2+
namespace tests;
3+
4+
use PHPUnit\Framework\TestCase;
25
use mikehaertl\tmp\File;
36

4-
class FileTest extends \PHPUnit\Framework\TestCase
7+
class FileTest extends TestCase
58
{
69
public function testCanCreateFile()
710
{

0 commit comments

Comments
 (0)