File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed
Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 2727 - run : php -m
2828 - run : composer -V
2929 - run : composer install --no-progress
30- - run : php vendor/bin/phpunit
30+ - run : php vendor/bin/phpunit --no-coverage
3131
3232 windows :
3333 name : Test on Windows
5959 - run : php -m
6060 - run : composer -V
6161 - run : composer install --no-progress
62- - run : php vendor/bin/phpunit
62+ - run : php vendor/bin/phpunit --no-coverage
6363
6464 code_coverage :
6565 name : Code Coverage
Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ composer.lock
88nbproject /
99build /
1010.phpunit.result.cache
11+ .phpunit.cache /
1112infection.log
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" bootstrap =" vendor/autoload.php" backupGlobals =" false" backupStaticAttributes = " false " colors =" true" verbose = " true " convertErrorsToExceptions = " true " convertNoticesToExceptions = " true " convertWarningsToExceptions = " true " processIsolation =" false" stopOnFailure =" false" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3 /phpunit.xsd" >
2+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" bootstrap =" vendor/autoload.php" backupGlobals =" false" colors =" true" processIsolation =" false" stopOnFailure =" false" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/11.5 /phpunit.xsd" cacheDirectory = " .phpunit.cache " backupStaticProperties = " false " >
33 <coverage >
4- <include >
5- <directory suffix =" .php" >src</directory >
6- </include >
74 <report >
85 <clover outputFile =" build/logs/clover.xml" />
96 <html outputDirectory =" build/coverage" />
1815 <logging >
1916 <junit outputFile =" build/report.junit.xml" />
2017 </logging >
18+ <source >
19+ <include >
20+ <directory suffix =" .php" >src</directory >
21+ </include >
22+ </source >
2123</phpunit >
Original file line number Diff line number Diff line change 33namespace kornrunner \Ethereum ;
44
55use InvalidArgumentException ;
6+ use PHPUnit \Framework \Attributes \DataProvider ;
67use PHPUnit \Framework \TestCase ;
78
89class AddressTest extends TestCase {
@@ -22,9 +23,7 @@ public function testCreateFromPrivateKey(): void {
2223 $ this ->assertSame ('677a637ec8f0bb2c8d33c6ace08054e521bff4b5 ' , $ address ->get ());
2324 $ this ->assertSame ('5f65c9c32a4e38393b79ccf94913c1e5dbe7071d4264aad290d936c4bb2a7c0e3a71ebc855aaadd38f477320d54cd88e5133bfcf97bbf037252db4cd824ab902 ' , $ address ->getPublicKey ());
2425 }
25- /**
26- * @dataProvider privateKeyPading
27- */
26+ #[DataProvider('privateKeyPading ' )]
2827 public function testPrivateKeyPadding ($ key , $ public ): void {
2928 $ address = new Address ($ key );
3029 $ this ->assertSame ($ public , $ address ->get ());
You can’t perform that action at this time.
0 commit comments