Skip to content
This repository was archived by the owner on Dec 31, 2022. It is now read-only.

Commit 5b50270

Browse files
committed
Minor changes
1 parent a9b792a commit 5b50270

File tree

6 files changed

+87
-53
lines changed

6 files changed

+87
-53
lines changed

.editorconfig

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1+
# More info at:
2+
# https://editorconfig.org/
3+
14
root = true
25

3-
[*.php]
6+
[*]
47
charset = utf-8
58
end_of_line = lf
6-
indent_style = tab
9+
indent_style = space
710
indent_size = 4
811
trim_trailing_whitespace = true
912
insert_final_newline = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false
16+
17+
[*.php]
18+
indent_style = tab
19+
20+
[*.yml]
21+
indent_size = 2

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
vendor/
21
composer.lock
2+
coverage.xml
3+
vendor/

.scrutinizer.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
build:
2+
nodes:
3+
analysis:
4+
tests:
5+
override:
6+
- php-scrutinizer-run
7+
coverage:
8+
tests:
9+
override:
10+
- command: 'php vendor/bin/phpunit --coverage-clover coverage.xml'
11+
coverage:
12+
file: 'coverage.xml'
13+
format: 'clover'

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ matrix:
44
include:
55
- php: 7.1
66
- php: 7.2
7+
- php: 7.3
78
- php: nightly
89
fast_finish: true
910

10-
sudo: false
11-
1211
before_install:
1312
- travis_retry composer self-update
1413

1514
install:
1615
- travis_retry composer install --no-interaction --prefer-source --no-suggest
1716

18-
script: vendor/bin/phpunit
17+
script: vendor/bin/phpunit --colors=always --coverage-text

composer.json

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,36 @@
11
{
2-
"name": "sunrise/http-factory",
3-
"description": "Sunrise HTTP factory",
4-
"keywords": ["fenric", "sunrise", "http", "http-factory", "psr-17"],
5-
"homepage": "https://github.com/sunrise-php/http-factory",
6-
"license": "MIT",
7-
"authors": [{
8-
"name": "Anatoly Fenric",
9-
"email": "anatoly@fenric.ru",
10-
"homepage": "https://anatoly.fenric.ru/"
11-
}],
12-
"require": {
13-
"php": "^7.1",
14-
"sunrise/http-message": "^1.0.9",
15-
"sunrise/http-server-request": "^1.0.5",
16-
"sunrise/stream": "^1.0.15",
17-
"sunrise/uri": "^1.0.19"
18-
},
19-
"require-dev": {
20-
"phpunit/phpunit": "7.4.3",
21-
"http-interop/http-factory-tests": "^0.5"
22-
},
23-
"provide": {
24-
"psr/http-factory-implementation": "1.0"
25-
},
26-
"autoload": {
27-
"psr-4": {
28-
"Sunrise\\Http\\Factory\\": "src/"
29-
}
30-
}
2+
"name": "sunrise/http-factory",
3+
"description": "Sunrise HTTP factory",
4+
"keywords": ["fenric", "sunrise", "http", "http-factory", "psr-17"],
5+
"homepage": "https://github.com/sunrise-php/http-factory",
6+
"license": "MIT",
7+
"authors": [{
8+
"name": "Anatoly Fenric",
9+
"email": "anatoly@fenric.ru",
10+
"homepage": "https://anatoly.fenric.ru/"
11+
}],
12+
"require": {
13+
"php": "^7.1",
14+
"sunrise/http-message": "^1.0.9",
15+
"sunrise/http-server-request": "^1.0.5",
16+
"sunrise/stream": "^1.0.15",
17+
"sunrise/uri": "^1.0.19"
18+
},
19+
"require-dev": {
20+
"phpunit/phpunit": "7.4.3",
21+
"http-interop/http-factory-tests": "^0.5"
22+
},
23+
"provide": {
24+
"psr/http-factory-implementation": "1.0"
25+
},
26+
"autoload": {
27+
"psr-4": {
28+
"Sunrise\\Http\\Factory\\": "src/"
29+
}
30+
},
31+
"scripts": {
32+
"test": [
33+
"phpunit --colors=always --coverage-text"
34+
]
35+
}
3136
}

phpunit.xml.dist

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
1+
<?xml version="1.0"?>
22
<phpunit colors="true">
3-
<testsuites>
4-
<testsuite name="Sunrise HTTP Factory Test Suite">
5-
<directory>./tests/</directory>
6-
</testsuite>
7-
<testsuite name="Integration tests">
8-
<directory>./vendor/http-interop/http-factory-tests/test</directory>
9-
</testsuite>
10-
</testsuites>
11-
12-
<php>
13-
<const name="REQUEST_FACTORY" value="Sunrise\Http\Factory\RequestFactory"/>
14-
<const name="RESPONSE_FACTORY" value="Sunrise\Http\Factory\ResponseFactory"/>
15-
<const name="SERVER_REQUEST_FACTORY" value="Sunrise\Http\Factory\ServerRequestFactory"/>
16-
<const name="STREAM_FACTORY" value="Sunrise\Http\Factory\StreamFactory"/>
17-
<const name="UPLOADED_FILE_FACTORY" value="Sunrise\Http\Factory\UploadedFileFactory"/>
18-
<const name="URI_FACTORY" value="Sunrise\Http\Factory\UriFactory"/>
19-
</php>
3+
<testsuites>
4+
<testsuite name="Sunrise HTTP Factory Test Suite">
5+
<directory>./tests/</directory>
6+
</testsuite>
7+
<testsuite name="Integration tests">
8+
<directory>./vendor/http-interop/http-factory-tests/test</directory>
9+
</testsuite>
10+
</testsuites>
11+
<filter>
12+
<whitelist>
13+
<directory>./src</directory>
14+
</whitelist>
15+
</filter>
16+
<php>
17+
<const name="REQUEST_FACTORY" value="Sunrise\Http\Factory\RequestFactory"/>
18+
<const name="RESPONSE_FACTORY" value="Sunrise\Http\Factory\ResponseFactory"/>
19+
<const name="SERVER_REQUEST_FACTORY" value="Sunrise\Http\Factory\ServerRequestFactory"/>
20+
<const name="STREAM_FACTORY" value="Sunrise\Http\Factory\StreamFactory"/>
21+
<const name="UPLOADED_FILE_FACTORY" value="Sunrise\Http\Factory\UploadedFileFactory"/>
22+
<const name="URI_FACTORY" value="Sunrise\Http\Factory\UriFactory"/>
23+
</php>
2024
</phpunit>

0 commit comments

Comments
 (0)