Skip to content

Commit 9852eec

Browse files
General tweaks to package infrastructure
1 parent 48d01dd commit 9852eec

File tree

6 files changed

+47
-24
lines changed

6 files changed

+47
-24
lines changed

.gitattributes

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
33

44
# Ignore all test and documentation with "export-ignore".
5-
/.gitattributes export-ignore
6-
/.gitignore export-ignore
7-
/phpunit.xml.dist export-ignore
8-
/tests export-ignore
9-
/.editorconfig export-ignore
5+
/.editorconfig export-ignore
6+
/.gitattributes export-ignore
7+
/.gitignore export-ignore
8+
/infection.json5.dist export-ignore
9+
/phpcs.xml export-ignore
10+
/phpstan.neon.dist export-ignore
11+
/phpunit.github-actions.up-to-9.xml.dist export-ignore
12+
/phpunit.github-actions.xml.dist export-ignore
13+
/phpunit.xml.dist export-ignore
14+
/tests export-ignore

.gitignore

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
build
2-
composer.lock
3-
vendor
1+
.idea/
2+
.phpunit/
3+
.phpunit.cache/
4+
build/
5+
infection/
6+
phpunit/
7+
phpunit.cache/
8+
vendor/
49
.phpunit.result.cache
5-
.idea
10+
composer.lock
11+
infection.json5
12+
phpstan.neon
13+
phpunit.xml
14+
tests/Unit/ManualTest.php
615
todo.txt
16+
update-steps.txt

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,9 @@
6565
"ocramius/package-versions": true,
6666
"infection/extension-installer": true
6767
}
68+
},
69+
"suggest": {
70+
"vlucas/phpdotenv": "Allows you to easily read values from .env files",
71+
"symfony/dotenv": "Allows you to easily read values from .env files"
6872
}
6973
}

phpstan.neon

Lines changed: 0 additions & 3 deletions
This file was deleted.

phpstan.neon.dist

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
parameters:
2+
paths:
3+
- src/
4+
- tests/
5+
level: max
6+
parallel:
7+
processTimeout: 300.0

tests/Unit/FluentDotEnvTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ public static function canGetMultipleValuesDataProvider(): array
13711371
'get() - three params as separate params' => [
13721372
'method' => 'get',
13731373
'params' => ['ONE', 'TWO', 'THREE'],
1374-
'expected' => ['ONE' => '1', 'TWO' => '2', 'THREE' => '3'],
1374+
'expected' => ['ONE' => '1', 'TWO' => '2', 'THREE' => '3'],
13751375
],
13761376
'get() - mixed params and array 1' => [
13771377
'method' => 'get',
@@ -1381,17 +1381,17 @@ public static function canGetMultipleValuesDataProvider(): array
13811381
'get() - mixed params and array 2' => [
13821382
'method' => 'get',
13831383
'params' => ['ONE', ['TWO', 'THREE']],
1384-
'expected' => ['ONE' => '1', 'TWO' => '2', 'THREE' => '3'],
1384+
'expected' => ['ONE' => '1', 'TWO' => '2', 'THREE' => '3'],
13851385
],
13861386
'get() - mixed params and array 3' => [
13871387
'method' => 'get',
13881388
'params' => [['ONE'], ['TWO', 'THREE']],
1389-
'expected' => ['ONE' => '1', 'TWO' => '2', 'THREE' => '3'],
1389+
'expected' => ['ONE' => '1', 'TWO' => '2', 'THREE' => '3'],
13901390
],
13911391
'get() - mixed params and array 4' => [
13921392
'method' => 'get',
13931393
'params' => [['ONE', 'TWO'], 'THREE'],
1394-
'expected' => ['ONE' => '1', 'TWO' => '2', 'THREE' => '3'],
1394+
'expected' => ['ONE' => '1', 'TWO' => '2', 'THREE' => '3'],
13951395
],
13961396

13971397
// INTEGER
@@ -1423,7 +1423,7 @@ public static function canGetMultipleValuesDataProvider(): array
14231423
'castInteger() - three params as separate params' => [
14241424
'method' => 'castInteger',
14251425
'params' => ['ONE', 'TWO', 'THREE'],
1426-
'expected' => ['ONE' => 1, 'TWO' => 2, 'THREE' => 3],
1426+
'expected' => ['ONE' => 1, 'TWO' => 2, 'THREE' => 3],
14271427
],
14281428
'castInteger() - mixed params and array 1' => [
14291429
'method' => 'castInteger',
@@ -1433,17 +1433,17 @@ public static function canGetMultipleValuesDataProvider(): array
14331433
'castInteger() - mixed params and array 2' => [
14341434
'method' => 'castInteger',
14351435
'params' => ['ONE', ['TWO', 'THREE']],
1436-
'expected' => ['ONE' => 1, 'TWO' => 2, 'THREE' => 3],
1436+
'expected' => ['ONE' => 1, 'TWO' => 2, 'THREE' => 3],
14371437
],
14381438
'castInteger() - mixed params and array 3' => [
14391439
'method' => 'castInteger',
14401440
'params' => [['ONE'], ['TWO', 'THREE']],
1441-
'expected' => ['ONE' => 1, 'TWO' => 2, 'THREE' => 3],
1441+
'expected' => ['ONE' => 1, 'TWO' => 2, 'THREE' => 3],
14421442
],
14431443
'castInteger() - mixed params and array 4' => [
14441444
'method' => 'castInteger',
14451445
'params' => [['ONE', 'TWO'], 'THREE'],
1446-
'expected' => ['ONE' => 1, 'TWO' => 2, 'THREE' => 3],
1446+
'expected' => ['ONE' => 1, 'TWO' => 2, 'THREE' => 3],
14471447
],
14481448

14491449
// BOOLEAN
@@ -1475,7 +1475,7 @@ public static function canGetMultipleValuesDataProvider(): array
14751475
'castBoolean() - three params as separate params' => [
14761476
'method' => 'castBoolean',
14771477
'params' => ['TRUE', 'FALSE', 'YES'],
1478-
'expected' => ['TRUE' => true, 'FALSE' => false, 'YES' => true],
1478+
'expected' => ['TRUE' => true, 'FALSE' => false, 'YES' => true],
14791479
],
14801480
'castBoolean() - mixed params and array 1' => [
14811481
'method' => 'castBoolean',
@@ -1485,17 +1485,17 @@ public static function canGetMultipleValuesDataProvider(): array
14851485
'castBoolean() - mixed params and array 2' => [
14861486
'method' => 'castBoolean',
14871487
'params' => ['TRUE', ['FALSE', 'YES']],
1488-
'expected' => ['TRUE' => true, 'FALSE' => false, 'YES' => true],
1488+
'expected' => ['TRUE' => true, 'FALSE' => false, 'YES' => true],
14891489
],
14901490
'castBoolean() - mixed params and array 3' => [
14911491
'method' => 'castBoolean',
14921492
'params' => [['TRUE'], ['FALSE', 'YES']],
1493-
'expected' => ['TRUE' => true, 'FALSE' => false, 'YES' => true],
1493+
'expected' => ['TRUE' => true, 'FALSE' => false, 'YES' => true],
14941494
],
14951495
'castBoolean() - mixed params and array 4' => [
14961496
'method' => 'castBoolean',
14971497
'params' => [['TRUE', 'FALSE'], 'YES'],
1498-
'expected' => ['TRUE' => true, 'FALSE' => false, 'YES' => true],
1498+
'expected' => ['TRUE' => true, 'FALSE' => false, 'YES' => true],
14991499
],
15001500
];
15011501
}

0 commit comments

Comments
 (0)