PHP 7.4.33
Preview: ClientTokenTest.php Size: 693 B
/home/godevadmin/www/admin/braintree/final/braintree2/tests/unit/ClientApi/ClientTokenTest.php

<?php
namespace Test\Unit\ClientApi;

require_once dirname(dirname(__DIR__)) . '/Setup.php';

use Test\Setup;
use Braintree;

class ClientTokenTest extends Setup
{
    public function testErrorsWhenCreditCardOptionsGivenWithoutCustomerId()
    {
        $this->setExpectedException('InvalidArgumentException', 'invalid keys: options[makeDefault]');
        Braintree\ClientToken::generate(["options" => ["makeDefault" => true]]);
    }

    public function testErrorsWhenInvalidArgumentIsSupplied()
    {
        $this->setExpectedException('InvalidArgumentException', 'invalid keys: customrId');
        Braintree\ClientToken::generate(["customrId" => "1234"]);
    }
}

Directory Contents

Dirs: 0 × Files: 1

Name Size Perms Modified Actions
693 B lrwxrwxr-x 2023-11-07 19:59:44
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).