Esempio n. 1
0
 function testCreateBuyer()
 {
     $collection = $this->getMock('\\RESTful\\Collection', array('create'), array('\\Balanced\\Account', 'some/uri', null));
     $collection->expects($this->once())->method('create')->with(array('email_address' => '*****@*****.**', 'card_uri' => '/some/card/uri', 'meta' => array('test#' => 'test_d'), 'name' => 'Buy Er'));
     $marketplace = new Marketplace(array('accounts' => $collection));
     $marketplace->createBuyer('*****@*****.**', '/some/card/uri', array('test#' => 'test_d'), 'Buy Er');
 }