public function test_multipleValueNode_creditCardType_allowedValues() { $this->setExpectedException('InvalidArgumentException', 'Invalid argument(s) for credit_card_card_type: noSuchCardType'); $collection = Braintree\Transaction::search([Braintree\TransactionSearch::creditCardCardType()->is('noSuchCardType')]); }