<?php $customer = OmiseCustomer::create(array('email' => '*****@*****.**', 'description' => 'John Doe (id: 30)'));
/** * Assert that a customer is successfully created with the given parameters set. * */ public function testCreate() { $customer = OmiseCustomer::create(array('email' => '*****@*****.**', 'description' => 'John Doe (id: 30)', 'card' => 'tokn_test_4zmrjhuk2rndz24a6x0')); $this->assertArrayHasKey('object', $customer); $this->assertEquals('customer', $customer['object']); }
<?php $customer = OmiseCustomer::create(array('email' => '*****@*****.**', 'description' => 'John Doe (id: 30)', 'card' => 'tokn_test_4xs9408a642a1htto8z'));