forked from lthn/blockchain
Introduces a new PHP client SDK generated via OpenAPI for the Lethean blockchain, including source code, models, API classes, documentation, tests, and configuration files. Updates Makefile to support PHP SDK generation and modifies php.json package configuration.
131 lines
2.5 KiB
PHP
Generated
131 lines
2.5 KiB
PHP
Generated
<?php
|
|
/**
|
|
* BlockApiTest
|
|
* PHP version 8.1
|
|
*
|
|
* @package OpenAPI\Client
|
|
* @author OpenAPI Generator team
|
|
* @link https://openapi-generator.tech
|
|
*/
|
|
|
|
/**
|
|
* Lethean Blockchain API
|
|
*
|
|
* OpenAPI for Lethean Blockchain
|
|
*
|
|
* The version of the OpenAPI document: 6.0.1
|
|
* @generated Generated by: https://openapi-generator.tech
|
|
* Generator version: 7.16.0
|
|
*/
|
|
|
|
/**
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Please update the test case below to test the endpoint.
|
|
*/
|
|
|
|
namespace OpenAPI\Client\Test\Api;
|
|
|
|
use OpenAPI\Client\Configuration;
|
|
use OpenAPI\Client\ApiException;
|
|
use OpenAPI\Client\ObjectSerializer;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
/**
|
|
* BlockApiTest Class Doc Comment
|
|
*
|
|
* @package OpenAPI\Client
|
|
* @author OpenAPI Generator team
|
|
* @link https://openapi-generator.tech
|
|
*/
|
|
class BlockApiTest extends TestCase
|
|
{
|
|
|
|
/**
|
|
* Setup before running any test cases
|
|
*/
|
|
public static function setUpBeforeClass(): void
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Setup before running each test case
|
|
*/
|
|
public function setUp(): void
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Clean up after running each test case
|
|
*/
|
|
public function tearDown(): void
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Clean up after running all test cases
|
|
*/
|
|
public static function tearDownAfterClass(): void
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Test case for createBlockTemplate
|
|
*
|
|
* Create a block template for mining.
|
|
*
|
|
*/
|
|
public function testCreateBlockTemplate()
|
|
{
|
|
// TODO: implement
|
|
self::markTestIncomplete('Not implemented');
|
|
}
|
|
|
|
/**
|
|
* Test case for getBlock
|
|
*
|
|
* Get a block by its hash or height (ID).
|
|
*
|
|
*/
|
|
public function testGetBlock()
|
|
{
|
|
// TODO: implement
|
|
self::markTestIncomplete('Not implemented');
|
|
}
|
|
|
|
/**
|
|
* Test case for getBlocks
|
|
*
|
|
* Get one or more blocks, with optional pagination..
|
|
*
|
|
*/
|
|
public function testGetBlocks()
|
|
{
|
|
// TODO: implement
|
|
self::markTestIncomplete('Not implemented');
|
|
}
|
|
|
|
/**
|
|
* Test case for getHeight
|
|
*
|
|
* Get the current blockchain height.
|
|
*
|
|
*/
|
|
public function testGetHeight()
|
|
{
|
|
// TODO: implement
|
|
self::markTestIncomplete('Not implemented');
|
|
}
|
|
|
|
/**
|
|
* Test case for submitBlock
|
|
*
|
|
* Submit a new block to the network.
|
|
*
|
|
*/
|
|
public function testSubmitBlock()
|
|
{
|
|
// TODO: implement
|
|
self::markTestIncomplete('Not implemented');
|
|
}
|
|
}
|