Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 0a80156

Browse files
committed
ci: refactor composer packages support
1 parent 9fe984b commit 0a80156

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

composer.json

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,20 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^7.2|^8.0|^8.1",
25-
"illuminate/console": "~5.4|~6.0|~7.0|~8.0|~9.0|~10.0",
26-
"illuminate/contracts": "~5.4|~6.0|~7.0|~8.0|~9.0|~10.0",
27-
"illuminate/http": "~5.4|~6.0|~7.0|~8.0|~9.0|~10.0",
28-
"illuminate/support": "~5.4|~6.0|~7.0|~8.0|~9.0|~10.0",
29-
"predis/predis": "^1.1"
24+
"php": ">=7.4|<=8.2",
25+
"ext-swoole": "^4",
26+
"illuminate/console": ">=5.4",
27+
"illuminate/contracts": ">=5.4",
28+
"illuminate/http": ">=5.4",
29+
"illuminate/support": ">=5.4",
30+
"predis/predis": "^1.1",
31+
"laravel/framework":"v5.4"
3032
},
3133
"require-dev": {
32-
"laravel/lumen-framework": "~5.4|~6.0|~7.0|~8.0|~9.0|~10.0",
33-
"phpunit/phpunit": "^8.5",
34-
"phpunit/php-code-coverage": "^7.0",
35-
"php-coveralls/php-coveralls": "^2.1",
34+
"laravel/lumen-framework": ">=5.4",
35+
"phpunit/phpunit": ">=8.5",
36+
"phpunit/php-code-coverage": ">=7.0",
37+
"php-coveralls/php-coveralls": ">=2.1",
3638
"mockery/mockery": "^1.3",
3739
"codedungeon/phpunit-result-printer": "^0.31.0",
3840
"php-mock/php-mock": "^2.3",
@@ -69,5 +71,10 @@
6971
"post-autoload-dump": [
7072
"@php copy_versioned_files.php"
7173
]
74+
},
75+
"config": {
76+
"allow-plugins": {
77+
"kylekatarnls/update-helper": true
78+
}
7279
}
7380
}

tests/Transformers/ResponseTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testSendHeaders()
5858
$cookie1->shouldReceive('isRaw')->once()->andReturn(true);
5959
$cookie1->shouldReceive('getName')->once()->andReturn('Cookie_1_getName');
6060
$cookie1->shouldReceive('getValue')->once()->andReturn('Cookie_1_getValue');
61-
$cookie1->shouldReceive('getExpiresTime')->once()->andReturn('Cookie_1_getExpiresTime');
61+
$cookie1->shouldReceive('getExpiresTime')->once()->andReturn(1);
6262
$cookie1->shouldReceive('getPath')->once()->andReturn('Cookie_1_getPath');
6363
$cookie1->shouldReceive('getDomain')->once()->andReturn('Cookie_1_getDomain');
6464
$cookie1->shouldReceive('isSecure')->once()->andReturn('Cookie_1_isSecure');
@@ -69,7 +69,7 @@ public function testSendHeaders()
6969
$cookie2->shouldReceive('isRaw')->once()->andReturn(false);
7070
$cookie2->shouldReceive('getName')->once()->andReturn('Cookie_2_getName');
7171
$cookie2->shouldReceive('getValue')->once()->andReturn('Cookie_2_getValue');
72-
$cookie2->shouldReceive('getExpiresTime')->once()->andReturn('Cookie_2_getExpiresTime');
72+
$cookie2->shouldReceive('getExpiresTime')->once()->andReturn(2);
7373
$cookie2->shouldReceive('getPath')->once()->andReturn('Cookie_2_getPath');
7474
$cookie2->shouldReceive('getDomain')->once()->andReturn('Cookie_2_getDomain');
7575
$cookie2->shouldReceive('isSecure')->once()->andReturn('Cookie_2_isSecure');
@@ -122,7 +122,7 @@ public function testSendHeaders()
122122
->withArgs([
123123
'Cookie_1_getName',
124124
'Cookie_1_getValue',
125-
'Cookie_1_getExpiresTime',
125+
1,
126126
'Cookie_1_getPath',
127127
'Cookie_1_getDomain',
128128
'Cookie_1_isSecure',
@@ -133,7 +133,7 @@ public function testSendHeaders()
133133
->withArgs([
134134
'Cookie_2_getName',
135135
'Cookie_2_getValue',
136-
'Cookie_2_getExpiresTime',
136+
2,
137137
'Cookie_2_getPath',
138138
'Cookie_2_getDomain',
139139
'Cookie_2_isSecure',

0 commit comments

Comments
 (0)