Your IP : 216.73.216.95


Current Path : /var/test/www/storage2/vendor/braintree/braintree_php/tests/unit/ClientApi/
Upload File :
Current File : /var/test/www/storage2/vendor/braintree/braintree_php/tests/unit/ClientApi/ClientTokenTest.php

<?php
require_once realpath(dirname(__FILE__)) . '/../../TestHelper.php';

class ClientTokenTest extends PHPUnit_Framework_TestCase
{
    function testErrorsWhenCreditCardOptionsGivenWithoutCustomerId()
    {
        $this->setExpectedException('InvalidArgumentException', 'invalid keys: options[makeDefault]');
        Braintree_ClientToken::generate(array("options" => array("makeDefault" => true)));
    }

    function testErrorsWhenInvalidArgumentIsSupplied()
    {
        $this->setExpectedException('InvalidArgumentException', 'invalid keys: customrId');
        Braintree_ClientToken::generate(array("customrId" => "1234"));
    }
}