File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 - name : PHPStan
3434 run : vendor/bin/phpstan
3535 - name : PHPUnit
36- run : vendor/bin/phpunit
36+ run : vendor/bin/phpunit --testdox
Original file line number Diff line number Diff line change 1- .phpunit.cache
1+ .phpunit.result. cache
Original file line number Diff line number Diff line change 1717 "php-http/discovery" : " ^1.20"
1818 },
1919 "require-dev" : {
20- "phpunit/phpunit" : " ^9" ,
20+ "phpunit/phpunit" : " ^9 || ^12 " ,
2121 "phpstan/phpstan" : " ^2.1" ,
2222 "symfony/cache" : " ^6" ,
2323 "symfony/http-client" : " ^6" ,
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3- xsi : noNamespaceSchemaLocation =" vendor/phpunit/phpunit/phpunit.xsd"
4- bootstrap =" vendor/autoload.php"
5- cacheResultFile =" .phpunit.cache"
6- executionOrder =" depends,defects"
7- beStrictAboutOutputDuringTests =" true"
8- failOnRisky =" true"
9- failOnWarning =" true" >
10- <testsuites >
11- <testsuite name =" default" >
12- <directory >tests</directory >
13- </testsuite >
14- </testsuites >
2+ <phpunit
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : noNamespaceSchemaLocation =" vendor/phpunit/phpunit/phpunit.xsd"
5+ bootstrap =" vendor/autoload.php"
6+ executionOrder =" depends,defects"
7+ beStrictAboutOutputDuringTests =" true"
8+ failOnRisky =" true"
9+ failOnWarning =" true"
10+ displayDetailsOnAllIssues =" true"
11+ >
12+ <testsuites >
13+ <testsuite name =" default" >
14+ <directory >tests</directory >
15+ </testsuite >
16+ </testsuites >
1517</phpunit >
Original file line number Diff line number Diff line change 33
44namespace WonderNetwork \SshPubkeyPayloadVerification \Signature ;
55
6+ use PHPUnit \Framework \Attributes \DataProvider ;
67use PHPUnit \Framework \TestCase ;
78use WonderNetwork \SshPubkeyPayloadVerification \Key \Key ;
89
910final class ParserTest extends TestCase {
10- /** @dataProvider signatures */
11+ #[DataProvider( ' signatures ' )]
1112 public function test_parse_sample (
1213 string $ sig ,
1314 string $ expectedKeyType ,
Original file line number Diff line number Diff line change 33
44namespace WonderNetwork \SshPubkeyPayloadVerification ;
55
6+ use PHPUnit \Framework \Attributes \DataProvider ;
67use PHPUnit \Framework \TestCase ;
78
89final class ValidatorTest extends TestCase {
9- /** @dataProvider signatures */
10+ #[DataProvider( ' signatures ' )]
1011 public function testValidate (string $ signature ): void {
1112 $ sut = ValidatorBuilder::start ()
1213 ->withKnownHostsFile (__DIR__ .'/Resources/127.0.0.1.keyscan ' )
Original file line number Diff line number Diff line change 33
44namespace WonderNetwork \SshPubkeyPayloadVerification \Verify \Der ;
55
6+ use PHPUnit \Framework \Attributes \DataProvider ;
67use PHPUnit \Framework \TestCase ;
78
89class IntegerTest extends TestCase {
9-
10- /** @dataProvider integers */
10+ #[DataProvider('integers ' )]
1111 public function testOfPositive (string $ prefix , string $ expected ): void {
1212 $ randomBytes = $ prefix .\random_bytes (16 );
1313 $ sut = Integer::ofPositive ($ randomBytes );
You can’t perform that action at this time.
0 commit comments