File tree 6 files changed +32
-23
lines changed
6 files changed +32
-23
lines changed Original file line number Diff line number Diff line change 15
15
path : /tmp/composer-cache
16
16
key : ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
17
17
18
- - uses : php-actions/composer@v5
18
+ - name : Install dependencies
19
+ uses : php-actions/composer@v6
20
+ with :
21
+ php_version : ' 8.1'
19
22
20
23
- name : Archive build
21
24
run : mkdir /tmp/github-actions/ && tar -cvf /tmp/github-actions/build.tar ./
40
43
run : tar -xvf /tmp/github-actions/build.tar ./
41
44
42
45
- name : PHP Unit tests
43
- uses : php-actions/phpunit@v2
46
+ uses : php-actions/phpunit@v3
44
47
with :
45
- php_version : 8.0
48
+ php_version : ' 8.1 '
46
49
php_extensions : xdebug
47
50
configuration : test/phpunit/phpunit.xml
48
51
bootstrap : vendor/autoload.php
61
64
run : tar -xvf /tmp/github-actions/build.tar ./
62
65
63
66
- name : PHP Static Analysis
64
- uses : php-actions/phpstan@v2
67
+ uses : php-actions/phpstan@v3
65
68
with :
66
- path : src/
69
+ php_version : ' 8.1'
70
+ path : src/
Original file line number Diff line number Diff line change 5
5
"license" : " MIT" ,
6
6
7
7
"require" : {
8
- "php" : " >=7.4 " ,
9
- "phpgt/dom" : " ^3 .0.0" ,
8
+ "php" : " >=8.1 " ,
9
+ "phpgt/dom" : " ^4 .0.0" ,
10
10
"phpgt/session" : " 1.*"
11
11
},
12
12
"require-dev" : {
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Gt \Csrf ;
2
+ namespace Gt \Csrf \ Test ;
3
3
4
4
use Exception ;
5
+ use Gt \Csrf \ArrayTokenStore ;
5
6
use Gt \Csrf \Exception \CsrfTokenInvalidException ;
6
7
use Gt \Csrf \Exception \CsrfTokenSpentException ;
7
8
use PHPUnit \Framework \TestCase ;
@@ -90,4 +91,4 @@ public function testChangeTokenLimit() {
90
91
$ this ->expectException (CSRFTokenInvalidException::class);
91
92
$ sut ->verifyToken ($ firstToken );
92
93
}
93
- }
94
+ }
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Gt \Csrf ;
2
+ namespace Gt \Csrf \ Test ;
3
3
4
+ use Gt \Csrf \ArrayTokenStore ;
5
+ use Gt \Csrf \HTMLDocumentProtector ;
4
6
use Gt \Dom \HTMLDocument ;
5
7
use PHPUnit \Framework \TestCase ;
6
8
Original file line number Diff line number Diff line change 1
1
<?php
2
- namespace Gt \Csrf ;
2
+ namespace Gt \Csrf \ Test ;
3
3
4
+ use Gt \Csrf \ArrayTokenStore ;
4
5
use Gt \Csrf \Exception \CsrfException ;
5
6
use Gt \Csrf \Exception \CsrfTokenInvalidException ;
6
7
use Gt \Csrf \Exception \CsrfTokenMissingException ;
7
8
use Gt \Csrf \Exception \CsrfTokenSpentException ;
9
+ use Gt \Csrf \HTMLDocumentProtector ;
8
10
use PHPUnit \Framework \TestCase ;
9
11
use stdClass ;
10
12
@@ -157,4 +159,4 @@ public function testTokenLengthChange() {
157
159
158
160
self ::assertNull ($ exception );
159
161
}
160
- }
162
+ }
You can’t perform that action at this time.
0 commit comments