php-bitpay-client/tests/Bitpay/Network/TestnetTest.php
2014-09-29 09:16:06 -04:00

31 lines
673 B
PHP

<?php
/**
* @license Copyright 2011-2014 BitPay Inc., MIT License
* see https://github.com/bitpay/php-bitpay-client/blob/master/LICENSE
*/
namespace Bitpay\Network;
class TestnetTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
$this->network = new Testnet();
}
public function testGetName()
{
$this->assertSame('testnet', $this->network->getName());
}
public function testGetAddressVersion()
{
$this->assertSame(0x6f, $this->network->getAddressVersion());
}
public function testGetApiHost()
{
$this->assertSame('test.bitpay.com', $this->network->getApiHost());
}
}