-
Notifications
You must be signed in to change notification settings - Fork 6
/
AbstractModuleTest.php
57 lines (43 loc) · 1.44 KB
/
AbstractModuleTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
declare(strict_types=1);
namespace Extraton\Tests\Integration\TonClient;
use Extraton\Tests\Integration\TonClient\Data\DataProvider;
use Extraton\Tests\Integration\TonClient\Data\EventSaver;
use Extraton\TonClient\Abi;
use Extraton\TonClient\Boc;
use Extraton\TonClient\Crypto;
use Extraton\TonClient\Net;
use Extraton\TonClient\Processing;
use Extraton\TonClient\TonClient;
use Extraton\TonClient\Tvm;
use Extraton\TonClient\Utils;
use PHPUnit\Framework\TestCase;
/**
* Abstract class for setup Ton client
*/
abstract class AbstractModuleTest extends TestCase
{
protected TonClient $tonClient;
protected Processing $processing;
protected Crypto $crypto;
protected Abi $abi;
protected Boc $boc;
protected Net $net;
protected Utils $utils;
protected Tvm $tvm;
protected DataProvider $dataProvider;
protected EventSaver $eventSaver;
public function setUp(): void
{
$this->tonClient = TonClient::createDefault();
$this->processing = $this->tonClient->getProcessing();
$this->crypto = $this->tonClient->getCrypto();
$this->abi = $this->tonClient->getAbi();
$this->boc = $this->tonClient->getBoc();
$this->net = $this->tonClient->getNet();
$this->utils = $this->tonClient->getUtils();
$this->tvm = $this->tonClient->getTvm();
$this->dataProvider = new DataProvider($this->tonClient);
$this->eventSaver = new EventSaver();
}
}