Skip to content

Commit 2d3d1e0

Browse files
authored
Merge pull request #47 from mikehaertl/refine-test-config
Test against newer PHP versions and use require/autoload-dev
2 parents 8d98d85 + 6af3ead commit 2d3d1e0

File tree

4 files changed

+36
-19
lines changed

4 files changed

+36
-19
lines changed

.travis.yml

+3
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

+25-17
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
{
2-
"name": "mikehaertl/php-shellcommand",
3-
"description": "An object oriented interface to shell commands",
4-
"keywords": ["shell"],
5-
"license": "MIT",
6-
"authors": [
7-
{
8-
"name": "Michael Härtl",
9-
"email": "[email protected]"
10-
}
11-
],
12-
"require": {
13-
"php": ">= 5.4.0"
14-
},
15-
"autoload": {
16-
"psr-4": {
17-
"mikehaertl\\shellcommand\\": "src/"
18-
}
2+
"name": "mikehaertl/php-shellcommand",
3+
"description": "An object oriented interface to shell commands",
4+
"keywords": ["shell"],
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Michael Härtl",
9+
"email": "[email protected]"
1910
}
11+
],
12+
"require": {
13+
"php": ">= 5.4.0"
14+
},
15+
"require-dev": {
16+
"phpunit/phpunit": ">4.0 <8"
17+
},
18+
"autoload": {
19+
"psr-4": {
20+
"mikehaertl\\shellcommand\\": "src/"
21+
}
22+
},
23+
"autoload-dev": {
24+
"psr-4": {
25+
"tests\\": "tests"
26+
}
27+
}
2028
}

tests/BlockingCommandTest.php

+4-1
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\shellcommand\Command;
36

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

tests/CommandTest.php

+4-1
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\shellcommand\Command;
36

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

0 commit comments

Comments
 (0)