You are here

function Braintree_CustomerTest::testCreateWithInvalidUTF8Bytes in Commerce Braintree 7

File

braintree_php/tests/integration/CustomerTest.php, line 670

Class

Braintree_CustomerTest

Code

function testCreateWithInvalidUTF8Bytes() {
  $result = Braintree_Customer::create(array(
    'firstName' => "",
  ));
  $this
    ->assertEquals(true, $result->success);
  $customer = $result->customer;
  $this
    ->assertEquals("Josè Maria", $customer->firstName);
}