Skip to content

neha0921/substrate-interface-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:/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:/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.