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

Commit

Permalink
Merge pull request #9 from sunrise-php/release/v1.1.1
Browse files Browse the repository at this point in the history
v1.1.1
  • Loading branch information
fenric committed Oct 13, 2021
2 parents 39c20a7 + 191b424 commit 8fb0296
Show file tree
Hide file tree
Showing 9 changed files with 94 additions and 54 deletions.
55 changes: 55 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,55 @@
# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
#
version: 2
jobs:
php71:
docker:
- image: circleci/php:7.1-cli-node-browsers
steps:
- checkout
- run: php -v
- run: composer install --no-interaction --no-suggest --prefer-source
- run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text
php72:
docker:
- image: circleci/php:7.2-cli-node-browsers
steps:
- checkout
- run: php -v
- run: composer install --no-interaction --no-suggest --prefer-source
- run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text
php73:
docker:
- image: circleci/php:7.3-cli-node-browsers
steps:
- checkout
- run: php -v
- run: composer install --no-interaction --no-suggest --prefer-source
- run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text
php74:
docker:
- image: circleci/php:7.4-cli-node-browsers
steps:
- checkout
- run: php -v
- run: composer install --no-interaction --no-suggest --prefer-source
- run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text
php80:
docker:
- image: circleci/php:8.0-cli-node-browsers
steps:
- checkout
- run: php -v
- run: composer install --no-interaction --no-suggest --prefer-source
- run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text
workflows:
version: 2
build:
jobs:
- php71
- php72
- php73
- php74
- php80
3 changes: 0 additions & 3 deletions .editorconfig
Expand Up @@ -11,8 +11,5 @@ indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 2
15 changes: 8 additions & 7 deletions .gitignore
@@ -1,7 +1,8 @@
.php_cs.cache
.phpunit.result.cache
composer.lock
coverage.xml
phpcs.xml
phpunit.xml
vendor/
/.php_cs.cache
/.phpunit.result.cache
/composer.lock
/coverage.xml
/phpbench.json
/phpcs.xml
/phpunit.xml
/vendor/
5 changes: 4 additions & 1 deletion .scrutinizer.yml
@@ -1,4 +1,7 @@
build:
environment:
php:
version: '8.0'
nodes:
analysis:
tests:
Expand All @@ -7,7 +10,7 @@ build:
coverage:
tests:
override:
- command: php vendor/bin/phpunit --coverage-clover coverage.xml
- command: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-clover coverage.xml
coverage:
file: coverage.xml
format: clover
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

17 changes: 10 additions & 7 deletions README.md
@@ -1,10 +1,13 @@
## HTTP factory for PHP 7.1+ (incl. PHP 8) based on PSR-17
# HTTP factory for PHP 7.1+ (incl. PHP 8) based on PSR-17

[![Gitter](https://badges.gitter.im/sunrise-php/support.png)](https://gitter.im/sunrise-php/support)
[![Build Status](https://scrutinizer-ci.com/g/sunrise-php/http-factory/badges/build.png?b=master)](https://scrutinizer-ci.com/g/sunrise-php/http-factory/build-status/master)
[![Latest Stable Version](https://poser.pugx.org/sunrise/http-factory/v/stable)](https://packagist.org/packages/sunrise/http-factory)
[![Total Downloads](https://poser.pugx.org/sunrise/http-factory/downloads)](https://packagist.org/packages/sunrise/http-factory)
[![License](https://poser.pugx.org/sunrise/http-factory/license)](https://packagist.org/packages/sunrise/http-factory)
[![Build Status](https://circleci.com/gh/sunrise-php/http-factory.svg?style=shield)](https://circleci.com/gh/sunrise-php/http-factory)
[![Code Coverage](https://scrutinizer-ci.com/g/sunrise-php/http-factory/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/sunrise-php/http-factory/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sunrise-php/http-factory/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/sunrise-php/http-factory/?branch=master)
[![Total Downloads](https://poser.pugx.org/sunrise/http-factory/downloads?format=flat)](https://packagist.org/packages/sunrise/http-factory)
[![Latest Stable Version](https://poser.pugx.org/sunrise/http-factory/v/stable?format=flat)](https://packagist.org/packages/sunrise/http-factory)
[![License](https://poser.pugx.org/sunrise/http-factory/license?format=flat)](https://packagist.org/packages/sunrise/http-factory)

---

## Installation

Expand Down Expand Up @@ -35,7 +38,7 @@ use Sunrise\Http\Factory\UriFactory;
## Test run

```bash
php vendor/bin/phpunit
composer test
```

## Useful links
Expand Down
10 changes: 7 additions & 3 deletions composer.json
@@ -1,7 +1,7 @@
{
"name": "sunrise/http-factory",
"homepage": "https://github.com/sunrise-php/http-factory",
"description": "Sunrise HTTP factory for PHP 7.1+ based on PSR-17",
"description": "Sunrise // HTTP factory for PHP 7.1+ based on PSR-17",
"license": "MIT",
"keywords": [
"fenric",
Expand Down Expand Up @@ -40,8 +40,12 @@
},
"scripts": {
"test": [
"phpunit --colors=always --coverage-text",
"phpcs"
"phpcs",
"XDEBUG_MODE=coverage phpunit --coverage-text"
],
"build": [
"phpdoc -d src/ -t phpdoc/",
"XDEBUG_MODE=coverage phpunit --coverage-html coverage/"
]
}
}
22 changes: 7 additions & 15 deletions phpunit.xml.dist
@@ -1,21 +1,13 @@
<?xml version="1.0"?>
<phpunit colors="true">
<phpunit colors="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory>./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Sunrise HTTP Factory Test Suite">
<testsuite name="sunrise.http.factory.testSuite">
<directory>./tests/</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>
3 changes: 3 additions & 0 deletions tests/FactoryTest.php
Expand Up @@ -45,6 +45,9 @@ public function testResponseFactory() : void
$this->assertInstanceOf(ResponseFactoryInterface::class, $factory);
}

/**
* @return void
*/
public function testServerRequestFactory() : void
{
$factory = new ServerRequestFactory();
Expand Down

0 comments on commit 8fb0296

Please sign in to comment.