Skip to content

Commit 87a28af

Browse files
Add PHPUnit configuration and refactor MessageTrait methods (#1)
* Add PHPUnit configuration and refactor MessageTrait methods - Introduced a new PHPUnit configuration file (phpunit.xml) to set up testing environment and coverage settings. - Refactored the MessageTrait by removing the dependency on Laminas\Mime\Decode and implementing a custom splitHeaderField method for header parsing. - Removed outdated tests related to SwooleFileStream and SwooleStream in SwooleStreamTest.php to streamline the test suite. * Add tests for SwooleFileStream and SwooleStream in SwooleStreamTest
1 parent 26201c7 commit 87a28af

File tree

8 files changed

+3039
-28
lines changed

8 files changed

+3039
-28
lines changed

.github/workflows/close-pull-request.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.phpunit.cache/
2+
/vendor/

composer.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"hyperf/coroutine": "~3.1.0",
1818
"hyperf/engine": "^2.11",
1919
"hyperf/support": "~3.1.0",
20-
"laminas/laminas-mime": "^2.7",
2120
"psr/http-message": "^1.0 || ^2.0",
2221
"swow/psr7-plus": "^1.0"
2322
},
@@ -38,11 +37,17 @@
3837
"sort-packages": true
3938
},
4039
"extra": {
41-
"branch-alias": {
42-
"dev-master": "3.1-dev"
43-
},
4440
"hyperf": {
4541
"config": "Hyperf\\HttpMessage\\ConfigProvider"
4642
}
43+
},
44+
"require-dev": {
45+
"mockery/mockery": "^1.6",
46+
"phpunit/phpunit": "^12.3",
47+
"psr/container": "^2.0",
48+
"swoole/ide-helper": "^6.0"
49+
},
50+
"scripts": {
51+
"test": "phpunit"
4752
}
4853
}

0 commit comments

Comments
 (0)