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

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Jan 21, 2019
1 parent a9b792a commit 5b50270
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 53 deletions.
16 changes: 14 additions & 2 deletions .editorconfig
@@ -1,9 +1,21 @@
# More info at:
# https://editorconfig.org/

root = true

[*.php]
[*]
charset = utf-8
end_of_line = lf
indent_style = tab
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.php]
indent_style = tab

[*.yml]
indent_size = 2
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,2 +1,3 @@
vendor/
composer.lock
coverage.xml
vendor/
13 changes: 13 additions & 0 deletions .scrutinizer.yml
@@ -0,0 +1,13 @@
build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
coverage:
tests:
override:
- command: 'php vendor/bin/phpunit --coverage-clover coverage.xml'
coverage:
file: 'coverage.xml'
format: 'clover'
5 changes: 2 additions & 3 deletions .travis.yml
Expand Up @@ -4,15 +4,14 @@ matrix:
include:
- php: 7.1
- php: 7.2
- php: 7.3
- php: nightly
fast_finish: true

sudo: false

before_install:
- travis_retry composer self-update

install:
- travis_retry composer install --no-interaction --prefer-source --no-suggest

script: vendor/bin/phpunit
script: vendor/bin/phpunit --colors=always --coverage-text
63 changes: 34 additions & 29 deletions composer.json
@@ -1,31 +1,36 @@
{
"name": "sunrise/http-factory",
"description": "Sunrise HTTP factory",
"keywords": ["fenric", "sunrise", "http", "http-factory", "psr-17"],
"homepage": "https://github.com/sunrise-php/http-factory",
"license": "MIT",
"authors": [{
"name": "Anatoly Fenric",
"email": "anatoly@fenric.ru",
"homepage": "https://anatoly.fenric.ru/"
}],
"require": {
"php": "^7.1",
"sunrise/http-message": "^1.0.9",
"sunrise/http-server-request": "^1.0.5",
"sunrise/stream": "^1.0.15",
"sunrise/uri": "^1.0.19"
},
"require-dev": {
"phpunit/phpunit": "7.4.3",
"http-interop/http-factory-tests": "^0.5"
},
"provide": {
"psr/http-factory-implementation": "1.0"
},
"autoload": {
"psr-4": {
"Sunrise\\Http\\Factory\\": "src/"
}
}
"name": "sunrise/http-factory",
"description": "Sunrise HTTP factory",
"keywords": ["fenric", "sunrise", "http", "http-factory", "psr-17"],
"homepage": "https://github.com/sunrise-php/http-factory",
"license": "MIT",
"authors": [{
"name": "Anatoly Fenric",
"email": "anatoly@fenric.ru",
"homepage": "https://anatoly.fenric.ru/"
}],
"require": {
"php": "^7.1",
"sunrise/http-message": "^1.0.9",
"sunrise/http-server-request": "^1.0.5",
"sunrise/stream": "^1.0.15",
"sunrise/uri": "^1.0.19"
},
"require-dev": {
"phpunit/phpunit": "7.4.3",
"http-interop/http-factory-tests": "^0.5"
},
"provide": {
"psr/http-factory-implementation": "1.0"
},
"autoload": {
"psr-4": {
"Sunrise\\Http\\Factory\\": "src/"
}
},
"scripts": {
"test": [
"phpunit --colors=always --coverage-text"
]
}
}
40 changes: 22 additions & 18 deletions phpunit.xml.dist
@@ -1,20 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0"?>
<phpunit colors="true">
<testsuites>
<testsuite name="Sunrise HTTP Factory Test Suite">
<directory>./tests/</directory>
</testsuite>
<testsuite name="Integration tests">
<directory>./vendor/http-interop/http-factory-tests/test</directory>
</testsuite>
</testsuites>

<php>
<const name="REQUEST_FACTORY" value="Sunrise\Http\Factory\RequestFactory"/>
<const name="RESPONSE_FACTORY" value="Sunrise\Http\Factory\ResponseFactory"/>
<const name="SERVER_REQUEST_FACTORY" value="Sunrise\Http\Factory\ServerRequestFactory"/>
<const name="STREAM_FACTORY" value="Sunrise\Http\Factory\StreamFactory"/>
<const name="UPLOADED_FILE_FACTORY" value="Sunrise\Http\Factory\UploadedFileFactory"/>
<const name="URI_FACTORY" value="Sunrise\Http\Factory\UriFactory"/>
</php>
<testsuites>
<testsuite name="Sunrise HTTP Factory Test Suite">
<directory>./tests/</directory>
</testsuite>
<testsuite name="Integration tests">
<directory>./vendor/http-interop/http-factory-tests/test</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>./src</directory>
</whitelist>
</filter>
<php>
<const name="REQUEST_FACTORY" value="Sunrise\Http\Factory\RequestFactory"/>
<const name="RESPONSE_FACTORY" value="Sunrise\Http\Factory\ResponseFactory"/>
<const name="SERVER_REQUEST_FACTORY" value="Sunrise\Http\Factory\ServerRequestFactory"/>
<const name="STREAM_FACTORY" value="Sunrise\Http\Factory\StreamFactory"/>
<const name="UPLOADED_FILE_FACTORY" value="Sunrise\Http\Factory\UploadedFileFactory"/>
<const name="URI_FACTORY" value="Sunrise\Http\Factory\UriFactory"/>
</php>
</phpunit>

0 comments on commit 5b50270

Please sign in to comment.