This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
125 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/vendor/ | ||
.phpunit.result.cache | ||
phpunit.xml.bak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
> | ||
<testsuites> | ||
<testsuite name="Test Suite"> | ||
<directory suffix="Test.php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">./app</directory> | ||
<directory suffix=".php">./src</directory> | ||
</include> | ||
</coverage> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache"> | ||
<testsuites> | ||
<testsuite name="Test Suite"> | ||
<directory suffix="Test.php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<coverage> | ||
<include> | ||
<directory suffix=".php">./app</directory> | ||
<directory suffix=".php">./src</directory> | ||
</include> | ||
</coverage> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Peerme\MxProviders\Tests; | ||
|
||
use Spatie\Snapshots\MatchesSnapshots as MatchesSnapshotsBase; | ||
|
||
trait MatchesSnapshots | ||
{ | ||
use MatchesSnapshotsBase; | ||
|
||
protected function getSnapshotDirectory(): string | ||
{ | ||
return __DIR__.DIRECTORY_SEPARATOR.'__snapshots__'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+749 Bytes
...hots__/AccountsTest____pest_evaluable_it_getByAddress___gets_an_account_by_address__1.txt
Binary file not shown.
Binary file added
BIN
+960 Bytes
...__pest_evaluable_it_getCollection___gets_collection_owned_by_the_user_and_given_id__1.txt
Binary file not shown.
Binary file added
BIN
+21.7 KB
...ountsTest____pest_evaluable_it_getCollections___gets_collections_owned_by_the_user__1.txt
Binary file not shown.
Binary file added
BIN
+8.14 KB
tests/__snapshots__/AccountsTest____pest_evaluable_it_getNfts___gets_an_accounts_nfts__1.txt
Binary file not shown.
Binary file added
BIN
+1.15 KB
...t_evaluable_it_getRolesCollection___gets_collection_owned_by_the_user_and_given_id__1.txt
Binary file not shown.
Binary file added
BIN
+4.73 KB
...___pest_evaluable_it_getRolesCollections___gets_role_collections_owned_by_the_user__1.txt
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...ountsTest____pest_evaluable_it_getToken___gets_a_specifc_token_owned_by_an_account__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
O:52:"Peerme\MxProviders\Entities\TokenDetailedWithBalance":19:{s:10:"identifier";s:12:"WHALE-b018f0";s:4:"name";s:9:"Whalecoin";s:5:"owner";s:62:"erd1660va6y429mxz4dkgek0ssny8tccaaaaaaaaaabbbbbbbbbbxxxxxxxxxx";s:8:"decimals";i:6;s:8:"isPaused";b:0;s:6:"assets";N;s:10:"canUpgrade";b:1;s:7:"canMint";b:1;s:7:"canBurn";b:1;s:14:"canChangeOwner";b:1;s:8:"canPause";b:1;s:9:"canFreeze";b:1;s:7:"canWipe";b:1;s:7:"balance";O:21:"Brick\Math\BigInteger":1:{s:5:"value";s:13:"1000000000000";}s:6:"ticker";s:12:"WHALE-b018f0";s:5:"burnt";s:1:"0";s:6:"minted";s:19:"2644244444444000000";s:6:"supply";s:19:"3000000000000000000";s:11:"rawResponse";a:17:{s:10:"identifier";s:12:"WHALE-b018f0";s:4:"name";s:9:"Whalecoin";s:6:"ticker";s:12:"WHALE-b018f0";s:5:"owner";s:62:"erd1660va6y429mxz4dkgek0ssny8tccaaaaaaaaaabbbbbbbbbbxxxxxxxxxx";s:6:"minted";s:19:"2644244444444000000";s:5:"burnt";s:1:"0";s:8:"decimals";i:6;s:8:"isPaused";b:0;s:10:"canUpgrade";b:1;s:7:"canMint";b:1;s:7:"canBurn";b:1;s:14:"canChangeOwner";b:1;s:8:"canPause";b:1;s:9:"canFreeze";b:1;s:7:"canWipe";b:1;s:6:"supply";s:19:"3000000000000000000";s:7:"balance";s:13:"1000000000000";}} |
Binary file added
BIN
+27 KB
...ts__/AccountsTest____pest_evaluable_it_getTokens___gets_tokens_owned_by_an_account__1.txt
Binary file not shown.
Binary file added
BIN
+42.1 KB
tests/__snapshots__/BlocksTest____pest_evaluable_it_gets_blocks__1.txt
Binary file not shown.
Binary file added
BIN
+7.25 KB
tests/__snapshots__/CollectionsTest____pest_evaluable_it_gets_a_collection_by_id__1.txt
Binary file not shown.
Binary file added
BIN
+1.7 KB
tests/__snapshots__/CollectionsTest____pest_evaluable_it_gets_accounts__1.txt
Binary file not shown.
Binary file added
BIN
+4.07 KB
tests/__snapshots__/CollectionsTest____pest_evaluable_it_gets_nfts__1.txt
Binary file not shown.
1 change: 1 addition & 0 deletions
1
tests/__snapshots__/NetworkTest____pest_evaluable_it_gets_constants__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
O:44:"Peerme\MxProviders\Entities\NetworkConstants":6:{s:7:"chainId";s:1:"1";s:14:"gasPerDataByte";i:1500;s:11:"minGasLimit";i:50000;s:11:"minGasPrice";i:1000000000;s:21:"minTransactionVersion";i:1;s:11:"rawResponse";a:5:{s:7:"chainId";s:1:"1";s:14:"gasPerDataByte";i:1500;s:11:"minGasLimit";i:50000;s:11:"minGasPrice";i:1000000000;s:21:"minTransactionVersion";i:1;}} |
1 change: 1 addition & 0 deletions
1
tests/__snapshots__/NetworkTest____pest_evaluable_it_gets_economics__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
O:37:"Peerme\MxProviders\Entities\Economics":9:{s:11:"totalSupply";i:22738134;s:17:"circulatingSupply";i:20078134;s:6:"staked";i:12077642;s:5:"price";d:308.29;s:9:"marketCap";i:6087314698;s:3:"apr";d:0.145813;s:8:"topUpApr";d:0.110942;s:7:"baseApr";d:0.165715;s:11:"rawResponse";a:8:{s:11:"totalSupply";i:22738134;s:17:"circulatingSupply";i:20078134;s:6:"staked";i:12077642;s:5:"price";d:308.29;s:9:"marketCap";i:6087314698;s:3:"apr";d:0.145813;s:8:"topUpApr";d:0.110942;s:7:"baseApr";d:0.165715;}} |
Binary file added
BIN
+2.21 KB
tests/__snapshots__/NftsTest____pest_evaluable_it_gets_an_nft_by_id__1.txt
Binary file not shown.
Binary file added
BIN
+455 Bytes
tests/__snapshots__/NftsTest____pest_evaluable_it_gets_the_owner_accounts_of_an_nft__1.txt
Binary file not shown.
1 change: 1 addition & 0 deletions
1
..._/TokensTest____pest_evaluable_it_getAccountsCount___gets_the_token_accounts_count__1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
i:0; |
Binary file added
BIN
+11.3 KB
..._snapshots__/TokensTest____pest_evaluable_it_getAccounts___gets_the_token_accounts__1.txt
Binary file not shown.
Binary file added
BIN
+1021 Bytes
tests/__snapshots__/TokensTest____pest_evaluable_it_getById___gets_the_token__1.txt
Binary file not shown.
Binary file added
BIN
+6.27 KB
tests/__snapshots__/TokensTest____pest_evaluable_it_getRoles___gets_the_token_roles__1.txt
Binary file not shown.
Binary file added
BIN
+4.94 KB
...est____pest_evaluable_it_getTransactions___gets_the_transaction_history_of_an_NFT___1.txt
Binary file not shown.
92 changes: 92 additions & 0 deletions
92
...ots__/TransactionsTest____pest_evaluable_it_gets_a_transaction_by_transaction_hash__1.yml
Large diffs are not rendered by default.
Oops, something went wrong.