Skip to content

Latest commit

 

History

History
executable file
·
71 lines (42 loc) · 1.42 KB

README.md

File metadata and controls

executable file
·
71 lines (42 loc) · 1.42 KB

Project Info

We have implemented package which help use to communicate with surface interface through function.

Budge Goes Here

Issue

Clone Package

git clone https://github.com/neha0921/substrate-interface-package.git

Installation

You can install the package via composer:

composer require neha0921/substrate-interface-package

Steps to create test enviornment

  1. Create Test folder and one php file to test code

  2. run command "touch composer.json"

  3. try to run following code.

Usage (Just Like)

$testClass = new SubstrateInterface("http_url");
echo $testClass->rpc->system->name();

Testing

vendor/phpunit/phpunit/phpunit

To run TestCases

I] Clone project git clone https://github.com/neha0921/substrate-interface-package.git

II] Update Composer composer Update

III] To check testcase run following command

vendor/bin/phpunit

e.g. ::

  1. vendor/bin/phpunit --filter testSystemName

  2. vendor/bin/phpunit --filter testRpcMethods

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.