<?php

namespace BitWasp\Bitcoin\Tests\Transaction;

use BitWasp\Bitcoin\Tests\AbstractTestCase;
use BitWasp\Bitcoin\Transaction\TransactionFactory;
use BitWasp\Bitcoin\Transaction\TransactionInterface;

class TransactionFactoryTest extends AbstractTestCase
{
    public function testCreate()
    {
        $tx = TransactionFactory::create();
        $this->assertSame(TransactionInterface::DEFAULT_VERSION, $tx->getVersion());
        $this->assertEmpty($tx->getInputs()->getInputs());
        $this->assertEmpty($tx->getOutputs()->getOutputs());
    }
}
Add transaction factory test, checks that tx's with a version = null default to TransactionInterface::DEFAULT_VERSION
Add transaction factory test, checks that tx's with a version = null default to TransactionInterface::DEFAULT_VERSION
