Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
cede0cc410 | ||
|
1d2581e78e | ||
|
2eafffbbe5 | ||
|
cc7d01e7eb | ||
|
1d47285b8b | ||
|
7c46919e7d | ||
|
91f4d2c40b | ||
|
2ae840f538 | ||
|
217851c62d | ||
|
7eb8a46366 | ||
|
dabb7262b5 |
8
.github/workflows/php.yml
vendored
8
.github/workflows/php.yml
vendored
@ -1,13 +1,13 @@
|
|||||||
name: PHP
|
name: PHP
|
||||||
|
|
||||||
on: ["push", "pull_request"]
|
on: ["push", "pull_request", "workflow_dispatch"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_test:
|
build_and_test:
|
||||||
name: Build and test web3.php with ${{ matrix.php-version }}
|
name: Build and test web3.php with ${{ matrix.php-version }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php-version: ["7.3", "7.4"]
|
php-version: ["7.3", "7.4", "8.0"]
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
@ -37,9 +37,9 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: vendor
|
path: vendor
|
||||||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-php-
|
${{ runner.os }}-php-${{ matrix.php-version }}-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.composer-cache.outputs.cache-hit != 'true'
|
if: steps.composer-cache.outputs.cache-hit != 'true'
|
||||||
|
@ -11,13 +11,13 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"guzzlehttp/guzzle": "^6.3|^7.0",
|
"guzzlehttp/guzzle": "^6.3|^7.0",
|
||||||
"PHP": "^7.1",
|
"PHP": "^7.2|^8.0",
|
||||||
"kornrunner/keccak": "~1.0",
|
"kornrunner/keccak": "~1.0",
|
||||||
"phpseclib/phpseclib": "~2.0.11",
|
"phpseclib/phpseclib": "~2.0.30",
|
||||||
"ext-mbstring": "*"
|
"ext-mbstring": "*"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "~6.0"
|
"phpunit/phpunit": "~8.0|~9.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
23
docker/php/Dockerfile-80
Normal file
23
docker/php/Dockerfile-80
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
FROM php:8.0-alpine
|
||||||
|
|
||||||
|
MAINTAINER Peter Lai <alk03073135@gmail.com>
|
||||||
|
|
||||||
|
COPY composer-setup.php composer-setup.php
|
||||||
|
# COPY php.ini-production $PHP_INI_DIR/php.ini
|
||||||
|
|
||||||
|
RUN apk update && \
|
||||||
|
apk add git
|
||||||
|
|
||||||
|
# Install gmp
|
||||||
|
Run apk add gmp-dev && \
|
||||||
|
docker-php-ext-install gmp
|
||||||
|
|
||||||
|
# Install nodejs
|
||||||
|
# Run apk add --update nodejs nodejs-npm
|
||||||
|
|
||||||
|
# Install composer
|
||||||
|
RUN php composer-setup.php && \
|
||||||
|
php composer-setup.php --install-dir=/usr/bin --filename=composer && \
|
||||||
|
php -r "unlink('composer-setup.php');"
|
||||||
|
|
||||||
|
WORKDIR /app
|
@ -7,8 +7,7 @@
|
|||||||
convertNoticesToExceptions="true"
|
convertNoticesToExceptions="true"
|
||||||
convertWarningsToExceptions="true"
|
convertWarningsToExceptions="true"
|
||||||
processIsolation="false"
|
processIsolation="false"
|
||||||
stopOnFailure="false"
|
stopOnFailure="false">
|
||||||
syntaxCheck="false">
|
|
||||||
|
|
||||||
<testsuite name="Web3.php unit test">
|
<testsuite name="Web3.php unit test">
|
||||||
<directory suffix="Test.php">./test/unit</directory>
|
<directory suffix="Test.php">./test/unit</directory>
|
||||||
|
@ -529,7 +529,7 @@ class Utils
|
|||||||
$number = str_replace('-', '', $number, $count);
|
$number = str_replace('-', '', $number, $count);
|
||||||
$negative1 = new BigNumber(-1);
|
$negative1 = new BigNumber(-1);
|
||||||
}
|
}
|
||||||
if (self::isZeroPrefixed($number) || preg_match('/[a-f]+/', $number) === 1) {
|
if (self::isZeroPrefixed($number) || preg_match('/^[0-9a-f]+$/i', $number) === 1) {
|
||||||
$number = self::stripZero($number);
|
$number = self::stripZero($number);
|
||||||
$bn = new BigNumber($number, 16);
|
$bn = new BigNumber($number, 16);
|
||||||
} elseif (empty($number)) {
|
} elseif (empty($number)) {
|
||||||
|
@ -37,10 +37,8 @@ class TestCase extends BaseTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* setUp
|
* setUp
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
$web3 = new Web3($this->testHost);
|
$web3 = new Web3($this->testHost);
|
||||||
$this->web3 = $web3;
|
$this->web3 = $web3;
|
||||||
@ -55,8 +53,6 @@ class TestCase extends BaseTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* tearDown
|
* tearDown
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function tearDown() {}
|
public function tearDown(): void {}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ class AddressFormatterTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->formatter = new AddressFormatter;
|
$this->formatter = new AddressFormatter;
|
||||||
|
@ -47,7 +47,7 @@ class AddressTypeTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->solidityType = new Address;
|
$this->solidityType = new Address;
|
||||||
|
@ -19,7 +19,7 @@ class AddressValidatorTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->validator = new AddressValidator;
|
$this->validator = new AddressValidator;
|
||||||
|
@ -20,7 +20,7 @@ class BigNumberFormatterTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->formatter = new BigNumberFormatter;
|
$this->formatter = new BigNumberFormatter;
|
||||||
|
@ -19,7 +19,7 @@ class BlockHashValidatorTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->validator = new BlockHashValidator;
|
$this->validator = new BlockHashValidator;
|
||||||
|
@ -20,7 +20,7 @@ class BooleanFormatterTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->formatter = new BooleanFormatter;
|
$this->formatter = new BooleanFormatter;
|
||||||
|
@ -47,7 +47,7 @@ class BooleanTypeTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->solidityType = new Boolean;
|
$this->solidityType = new Boolean;
|
||||||
|
@ -19,7 +19,7 @@ class BooleanValidatorTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->validator = new BooleanValidator;
|
$this->validator = new BooleanValidator;
|
||||||
|
@ -53,7 +53,7 @@ class BytesTypeTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->solidityType = new Bytes;
|
$this->solidityType = new Bytes;
|
||||||
|
@ -19,7 +19,7 @@ class CallValidatorTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->validator = new CallValidator;
|
$this->validator = new CallValidator;
|
||||||
|
@ -412,7 +412,7 @@ class ContractTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ class DynamicBytesTypeTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->solidityType = new DynamicBytes;
|
$this->solidityType = new DynamicBytes;
|
||||||
|
@ -21,7 +21,7 @@ class EthApiTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ class EthBatchTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class EthTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ class EthabiTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
// Error: Using $this when not in object context
|
// Error: Using $this when not in object context
|
||||||
|
@ -19,7 +19,7 @@ class FilterValidatorTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->validator = new FilterValidator;
|
$this->validator = new FilterValidator;
|
||||||
|
@ -19,7 +19,7 @@ class HexFormatterTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->formatter = new HexFormatter;
|
$this->formatter = new HexFormatter;
|
||||||
|
@ -19,7 +19,7 @@ class HexValidatorTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->validator = new HexValidator;
|
$this->validator = new HexValidator;
|
||||||
|
@ -19,7 +19,7 @@ class IdentityValidatorTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->validator = new IdentityValidator;
|
$this->validator = new IdentityValidator;
|
||||||
|
@ -19,7 +19,7 @@ class IntegerFormatterTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->formatter = new IntegerFormatter;
|
$this->formatter = new IntegerFormatter;
|
||||||
|
@ -53,7 +53,7 @@ class IntegerTypeTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->solidityType = new Integer;
|
$this->solidityType = new Integer;
|
||||||
|
@ -21,7 +21,7 @@ class NetApiTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ class NetBatchTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class NetTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ class NonceValidatorTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->validator = new NonceValidator;
|
$this->validator = new NonceValidator;
|
||||||
|
@ -19,7 +19,7 @@ class NumberFormatterTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->formatter = new NumberFormatter;
|
$this->formatter = new NumberFormatter;
|
||||||
|
@ -19,7 +19,7 @@ class OptionalQuantityFormatterTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->formatter = new OptionalQuantityFormatter;
|
$this->formatter = new OptionalQuantityFormatter;
|
||||||
@ -55,6 +55,8 @@ class OptionalQuantityFormatterTest extends TestCase
|
|||||||
$this->assertEquals('latest', $formatter->format('latest'));
|
$this->assertEquals('latest', $formatter->format('latest'));
|
||||||
$this->assertEquals('earliest', $formatter->format('earliest'));
|
$this->assertEquals('earliest', $formatter->format('earliest'));
|
||||||
$this->assertEquals('pending', $formatter->format('pending'));
|
$this->assertEquals('pending', $formatter->format('pending'));
|
||||||
$this->assertEquals('0x0', $formatter->format('hello'));
|
|
||||||
|
$this->expectExceptionMessage('toBn number must be valid hex string.');
|
||||||
|
$formatter->format('hello');
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -27,7 +27,7 @@ class PersonalApiTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ class PersonalBatchTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class PersonalTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ class PostFormatterTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->formatter = new PostFormatter;
|
$this->formatter = new PostFormatter;
|
||||||
|
@ -19,7 +19,7 @@ class PostValidatorTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->validator = new PostValidator;
|
$this->validator = new PostValidator;
|
||||||
|
@ -19,7 +19,7 @@ class QuantityFormatterTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->formatter = new QuantityFormatter;
|
$this->formatter = new QuantityFormatter;
|
||||||
|
@ -19,7 +19,7 @@ class QuantityValidatorTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->validator = new QuantityValidator;
|
$this->validator = new QuantityValidator;
|
||||||
|
@ -21,7 +21,7 @@ class ShhApiTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ class ShhBatchTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ class ShhFilterValidatorTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->validator = new ShhFilterValidator;
|
$this->validator = new ShhFilterValidator;
|
||||||
|
@ -23,7 +23,7 @@ class ShhTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ class SolidityTypeTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->type = new SolidityType();
|
$this->type = new SolidityType();
|
||||||
|
@ -47,7 +47,7 @@ class StrTypeTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->solidityType = new Str;
|
$this->solidityType = new Str;
|
||||||
|
@ -19,7 +19,7 @@ class StringFormatterTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->formatter = new StringFormatter;
|
$this->formatter = new StringFormatter;
|
||||||
|
@ -19,7 +19,7 @@ class StringValidatorTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->validator = new StringValidator;
|
$this->validator = new StringValidator;
|
||||||
|
@ -19,7 +19,7 @@ class TagValidatorTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->validator = new TagValidator;
|
$this->validator = new TagValidator;
|
||||||
|
@ -19,7 +19,7 @@ class TransactionFormatterTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->formatter = new TransactionFormatter;
|
$this->formatter = new TransactionFormatter;
|
||||||
|
@ -19,7 +19,7 @@ class TransactionValidatorTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->validator = new TransactionValidator;
|
$this->validator = new TransactionValidator;
|
||||||
|
@ -53,7 +53,7 @@ class UintegerTypeTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->solidityType = new Uinteger;
|
$this->solidityType = new Uinteger;
|
||||||
|
@ -137,7 +137,7 @@ class UtilsTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ class Web3ApiTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ class Web3BatchTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ class Web3Test extends TestCase
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setUp()
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user