function test_throwsIfNoOperatorNodeGiven() { $this->setExpectedException('InvalidArgumentException', 'Operator must be provided'); Braintree_Customer::search(array(Braintree_CustomerSearch::creditCardExpirationDate())); }