Skip to content

Commit 4d570db

Browse files
Moved to PHP 7.1 and PHPUnit 6.1
1 parent 56fcd34 commit 4d570db

4 files changed

Lines changed: 12 additions & 7 deletions

File tree

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
language: "php"
22

33
php:
4-
- 5.6
5-
- 7.0
64
- 7.1
7-
- hhvm
85

96
install:
107
- "composer install"

composer.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"name": "moon-php/container",
3+
"description": "A very simple Container with support for PSR-11",
34
"require": {
4-
"psr/container": "^1.0"
5+
"psr/container": "^1.0",
6+
"php": ">=7.1"
57
},
68
"require-dev": {
7-
"phpunit/phpunit": "^5.6"
9+
"phpunit/phpunit": "^6.1"
810
},
911
"authors": [
1012
{
@@ -16,5 +18,10 @@
1618
"psr-4": {
1719
"Moon\\Container\\": "src/"
1820
}
21+
},
22+
"autoload-dev": {
23+
"psr-4": {
24+
"Moon\\Container\\Unit\\": "tests/Unit/"
25+
}
1926
}
2027
}

src/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function get($alias)
7171
*
7272
* @return boolean
7373
*/
74-
public function has($alias)
74+
public function has($alias): bool
7575
{
7676
if (!isset($this->container[$alias])) {
7777
return false;

tests/Unit/ContainerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
use Moon\Container\Container;
66
use Moon\Container\Exception\NotFoundException;
7+
use PHPUnit\Framework\TestCase;
78

8-
class ContainerTest extends \PHPUnit_Framework_TestCase
9+
class ContainerTest extends TestCase
910
{
1011
/**
1112
* Test that integer is added to container

0 commit comments

Comments
 (0)