Skip to content

Commit e455f9d

Browse files
committed
deprecations
1 parent 8ce335a commit e455f9d

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
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
@@ -59,7 +59,7 @@ jobs:
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ composer.lock
88
nbproject/
99
build/
1010
.phpunit.result.cache
11+
.phpunit.cache/
1112
infection.log

phpunit.xml.dist

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
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"/>
@@ -18,4 +15,9 @@
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>

test/AddressTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace kornrunner\Ethereum;
44

55
use InvalidArgumentException;
6+
use PHPUnit\Framework\Attributes\DataProvider;
67
use PHPUnit\Framework\TestCase;
78

89
class 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());

0 commit comments

Comments
 (0)