function test_multipleValueNode_creditCardCustomerLocation_allowedValues() { $this->setExpectedException('InvalidArgumentException', 'Invalid argument(s) for credit_card_customer_location: noSuchLocation'); $collection = Braintree_Transaction::search(array(Braintree_TransactionSearch::creditCardCustomerLocation()->is('noSuchLocation'))); }