���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/zhaagvlk/web.zhaap.com/vendor__1b5d5ff/xendit/xendit-php/tests/Xendit/BalanceTest.php
���ѧ٧ѧ�
<?php /** * BalanceTest.php * php version 7.2.0 * * @category Test * @package Xendit * @author Ellen <ellen@xendit.co> * @license https://opensource.org/licenses/MIT MIT License * @link https://api.xendit.co */ namespace Xendit; use Xendit\Balance; use Xendit\TestCase; /** * Class BalanceTest * * @category Class * @package Xendit * @author Ellen <ellen@xendit.co> * @license https://opensource.org/licenses/MIT MIT License * @link https://api.xendit.co */ class BalanceTest extends TestCase { const ACCOUNT_TYPE = 'CASH'; const AMOUNT = 100000; /** * Get Balance test * Should pass * * @return void * @throws Exceptions\ApiException */ public function testIsGettable() { $this->stubRequest( 'get', '/balance?account_type=' . self::ACCOUNT_TYPE, [], [], [ 'balance' => self::AMOUNT ] ); $result = Balance::getBalance(self::ACCOUNT_TYPE); $this->assertEquals($result['balance'], self::AMOUNT); } /** * Get Balance test * Should throw ApiException * * @return void * @throws Exceptions\InvalidArgumentException * @throws Exceptions\ApiException */ public function testIsGettableThrowInvalidArgumentException() { $this->expectException(\Xendit\Exceptions\InvalidArgumentException::class); Balance::getBalance(); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�