public static function creditCardCustomerLocation()
{
return new MultipleValueNode('credit_card_customer_location', [CreditCard::INTERNATIONAL, CreditCard::US]);
}
public function test_multipleValueNode_creditCardCustomerLocation_allowedValues() { $this->setExpectedException('InvalidArgumentException', 'Invalid argument(s) for credit_card_customer_location: noSuchLocation'); $collection = Braintree\Transaction::search([Braintree\TransactionSearch::creditCardCustomerLocation()->is('noSuchLocation')]); }