File "BitcoinAddressTest.php"

Full Path: /home/cananyalcin/public_html/core/lib/coinbase/tests/Resource/BitcoinAddressTest.php
File size: 607 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Coinbase\Wallet\Tests\Resource;

use Coinbase\Wallet\Enum\ResourceType;
use Coinbase\Wallet\Resource\BitcoinAddress;

class BitcoinAddressTest extends \PHPUnit_Framework_TestCase
{
    public function testConstructor()
    {
        $address = new BitcoinAddress('ADDRESS');

        $this->assertEquals(ResourceType::BITCOIN_ADDRESS, $address->getResourceType());
        $this->assertNull($address->getId());
        $this->assertNull($address->getResourcePath());
        $this->assertNull($address->getRawData());
        $this->assertEquals('ADDRESS', $address->getAddress());
    }
}