Skip to content

Commit 21c0b44

Browse files
Update tests
1 parent a791362 commit 21c0b44

File tree

4 files changed

+39
-30
lines changed

4 files changed

+39
-30
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ All notable changes to `sebastiaanluca/php-pipe-operator` will be documented in
44

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

7+
## 5.0.0 (2022-03-17)
8+
9+
### Added
10+
11+
- Added support for PHP 8.1
12+
- Added support for first class callable syntax (PHP 8.1)
13+
14+
### Changed
15+
16+
- Cleaned up internals
17+
718
## 4.0.0 (2021-06-22)
819

920
### Added

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[![Follow @sebastiaanluca on Twitter][twitter-profile-badge]][link-twitter]
1212
[![Share this package on Twitter][twitter-share-badge]][link-twitter-share]
1313

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

1616
## Table of contents
1717

@@ -36,7 +36,7 @@
3636

3737
## Requirements
3838

39-
- PHP 8 or higher
39+
- PHP 8 or 8.1
4040

4141
## How to install
4242

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sebastiaanluca/php-pipe-operator",
33
"type": "library",
4-
"description": "A (hopefully) temporary solution to implement the pipe operator in PHP.",
4+
"description": "Method chaining (or fluent expressions) for any value using any method.",
55
"keywords": [
66
"php",
77
"pipe",
@@ -14,15 +14,16 @@
1414
{
1515
"name": "Sebastiaan Luca",
1616
"email": "[email protected]",
17-
"homepage": "https://www.sebastiaanluca.com",
17+
"homepage": "https://sebastiaanluca.com",
1818
"role": "Author"
1919
}
2020
],
2121
"require": {
22-
"php": "^8"
22+
"php": "~8.0|~8.1"
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": "^9.5"
25+
"phpunit/phpunit": "^9.5",
26+
"ext-mbstring": "*"
2627
},
2728
"autoload": {
2829
"psr-4": {

phpunit.xml.dist

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
verbose="true"
7-
processIsolation="false"
8-
convertErrorsToExceptions="true"
9-
convertNoticesToExceptions="true"
10-
convertWarningsToExceptions="true"
11-
beStrictAboutTestsThatDoNotTestAnything="true"
12-
beStrictAboutOutputDuringTests="true"
13-
stopOnFailure="false"
14-
failOnRisky="true"
15-
failOnWarning="true"
16-
stopOnError="false"
17-
cacheResult="false"
18-
cacheTokens="false">
2+
<phpunit
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
bootstrap="vendor/autoload.php"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false"
12+
verbose="true"
13+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
15+
>
16+
<coverage>
17+
<include>
18+
<directory suffix=".php">src/</directory>
19+
</include>
20+
</coverage>
1921
<testsuites>
20-
<testsuite name="Unit Tests">
21-
<directory suffix="Test.php">./tests/Unit</directory>
22+
<testsuite name="Feature tests">
23+
<directory>tests</directory>
2224
</testsuite>
2325
</testsuites>
24-
<filter>
25-
<whitelist>
26-
<directory suffix=".php">src/</directory>
27-
</whitelist>
28-
</filter>
2926
</phpunit>

0 commit comments

Comments
 (0)