Stripe\SourceTest::testCreate PHP Метод

testCreate() публичный Метод

public testCreate ( )
    public function testCreate()
    {
        $this->mockRequest('POST', '/v1/sources', array('type' => 'bitcoin', 'amount' => 1000, 'currency' => 'usd', 'owner' => array('email' => '[email protected]')), array('id' => 'src_foo', 'object' => 'source'));
        $source = Source::create(array('type' => 'bitcoin', 'amount' => 1000, 'currency' => 'usd', 'owner' => array('email' => '[email protected]')));
        $this->assertSame($source->id, 'src_foo');
    }