forked from lthn/blockchain
132 lines
2.5 KiB
PHP
132 lines
2.5 KiB
PHP
|
|
<?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');
|
||
|
|
}
|
||
|
|
}
|