Commit 66e6f49 1 parent ed734c4 commit 66e6f49 Copy full SHA for 66e6f49
File tree 3 files changed +20
-6
lines changed
3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 14
14
composer update --no-interaction --prefer-dist --optimize-autoloader
15
15
16
16
- name : PHPStan
17
- uses : docker://oskarstark/phpstan-ga:0.12.44
17
+ uses : docker://oskarstark/phpstan-ga:0.12.48
18
+ env :
19
+ REQUIRE_DEV : true
18
20
with :
19
21
entrypoint : /composer/vendor/bin/phpstan
20
22
args : analyze --no-progress
28
30
uses : actions/checkout@v2
29
31
30
32
- name : PHP-CS-Fixer
31
- uses :
OskarStark/[email protected] .1
33
+ uses :
OskarStark/[email protected]
32
34
with :
33
35
args : --dry-run --diff-format udiff
34
36
40
42
uses : actions/checkout@v2
41
43
42
44
- name : Psalm
43
- uses : psalm/psalm-github-actions@master
45
+ uses : docker://vimeo/psalm-github-actions:3.17.2
46
+ env :
47
+ REQUIRE_DEV : true
44
48
with :
45
49
args : --no-progress --show-info=false --stats
Original file line number Diff line number Diff line change 23
23
"require-dev" : {
24
24
"phpunit/phpunit" : " ^7.5" ,
25
25
"php-http/psr7-integration-tests" : " ^1.0" ,
26
- "http-interop/http-factory-tests" : " dev-master " ,
26
+ "http-interop/http-factory-tests" : " ^0.8 " ,
27
27
"symfony/error-handler" : " ^4.4"
28
28
},
29
29
"provide" : {
Original file line number Diff line number Diff line change @@ -126,12 +126,22 @@ public function testWithPortCannotBeNegative()
126
126
(new Uri ())->withPort (-1 );
127
127
}
128
128
129
- public function testParseUriPortCannotBeZero ()
129
+ public function testParseUriPortCannotBeNegative ()
130
130
{
131
131
$ this ->expectException (\InvalidArgumentException::class);
132
132
$ this ->expectExceptionMessage ('Unable to parse URI ' );
133
133
134
- new Uri ('//example.com:0 ' );
134
+ new Uri ('//example.com:-1 ' );
135
+ }
136
+
137
+ public function testParseUriPortCanBeZero ()
138
+ {
139
+ if (version_compare (PHP_VERSION , '7.4.12 ' ) < 0 ) {
140
+ self ::markTestSkipped ('Skipping this on low PHP versions. ' );
141
+ }
142
+
143
+ $ uri = new Uri ('//example.com:0 ' );
144
+ $ this ->assertEquals (0 , $ uri ->getPort ());
135
145
}
136
146
137
147
public function testSchemeMustHaveCorrectType ()
You can’t perform that action at this time.
0 commit comments