Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiaanluca committed Mar 17, 2022
1 parent a791362 commit 21c0b44
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 30 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to `sebastiaanluca/php-pipe-operator` will be documented in

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## 5.0.0 (2022-03-17)

### Added

- Added support for PHP 8.1
- Added support for first class callable syntax (PHP 8.1)

### Changed

- Cleaned up internals

## 4.0.0 (2021-06-22)

### Added
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[![Follow @sebastiaanluca on Twitter][twitter-profile-badge]][link-twitter]
[![Share this package on Twitter][twitter-share-badge]][link-twitter-share]

**A (hopefully) temporary solution to implement the pipe operator in PHP.**
Method chaining (or fluent expressions) **for any value using any method.**

## Table of contents

Expand All @@ -36,7 +36,7 @@

## Requirements

- PHP 8 or higher
- PHP 8 or 8.1

## How to install

Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sebastiaanluca/php-pipe-operator",
"type": "library",
"description": "A (hopefully) temporary solution to implement the pipe operator in PHP.",
"description": "Method chaining (or fluent expressions) for any value using any method.",
"keywords": [
"php",
"pipe",
Expand All @@ -14,15 +14,16 @@
{
"name": "Sebastiaan Luca",
"email": "[email protected]",
"homepage": "https://www.sebastiaanluca.com",
"homepage": "https://sebastiaanluca.com",
"role": "Author"
}
],
"require": {
"php": "^8"
"php": "~8.0|~8.1"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": "^9.5",
"ext-mbstring": "*"
},
"autoload": {
"psr-4": {
Expand Down
45 changes: 21 additions & 24 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
processIsolation="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutOutputDuringTests="true"
stopOnFailure="false"
failOnRisky="true"
failOnWarning="true"
stopOnError="false"
cacheResult="false"
cacheTokens="false">
<phpunit
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
>
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Unit Tests">
<directory suffix="Test.php">./tests/Unit</directory>
<testsuite name="Feature tests">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit 21c0b44

Please sign in to comment.