Skip to content

Test against newer PHP versions and use require/autoload-dev #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
language: php
dist: trusty
php:
- "7.4"
- "7.3"
- "7.2"
- "7.1"
- "7.0"
- "5.6"
Expand Down
44 changes: 26 additions & 18 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
{
"name": "codemix/yii2-configloader",
"description": "Build configuration arrays from config files and env vars.",
"keywords": ["yii2", "config", "environment"],
"license": "MIT",
"authors": [
{
"name": "Michael Härtl",
"email": "haertl.mike@gmail.com"
}
],
"require": {
"yiisoft/yii2": "*",
"vlucas/phpdotenv": "2.5.*"
},
"autoload": {
"psr-4": {
"codemix\\yii2confload\\": "src/"
}
"name": "codemix/yii2-configloader",
"description": "Build configuration arrays from config files and env vars.",
"keywords": ["yii2", "config", "environment"],
"license": "MIT",
"authors": [
{
"name": "Michael Härtl",
"email": "haertl.mike@gmail.com"
}
],
"require": {
"yiisoft/yii2": "*",
"vlucas/phpdotenv": "2.5.*"
},
"require-dev": {
"phpunit/phpunit": ">4.0 <8"
},
"autoload": {
"psr-4": {
"codemix\\yii2confload\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"tests\\": "tests"
}
}
}
5 changes: 4 additions & 1 deletion tests/BootstrapTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<?php
namespace tests;

use \PHPUnit\Framework\TestCase;
use codemix\yii2confload\Config;

class BootstrapTest extends \PHPUnit\Framework\TestCase
class BootstrapTest extends TestCase
{
public function testCanBootstrapApplication()
{
Expand Down
5 changes: 4 additions & 1 deletion tests/ConsoleConfigTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<?php
namespace tests;

use \PHPUnit\Framework\TestCase;
use codemix\yii2confload\Config;

class ConsoleConfigTest extends \PHPUnit\Framework\TestCase
class ConsoleConfigTest extends TestCase
{
public function testCanGetConfig()
{
Expand Down
5 changes: 4 additions & 1 deletion tests/EnvTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<?php
namespace tests;

use \PHPUnit\Framework\TestCase;
use codemix\yii2confload\Config;

class EnvTest extends \PHPUnit\Framework\TestCase
class EnvTest extends TestCase
{
public function testCanInitYiiEnvFromEnvVars()
{
Expand Down
5 changes: 4 additions & 1 deletion tests/WebConfigTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<?php
namespace tests;

use \PHPUnit\Framework\TestCase;
use codemix\yii2confload\Config;

class WebConfigTest extends \PHPUnit\Framework\TestCase
class WebConfigTest extends TestCase
{
public function testCanGetConfig()
{
Expand Down