TransactionTest.php 431 B

123456789101112131415161718
  1. <?php
  2. use PHPUnit\Framework\TestCase;
  3. class TransactionTest extends TestCase
  4. {
  5. /**
  6. * @covers \mattvb91\TronTrx\Transaction::isSigned
  7. */
  8. public function testIsSigned()
  9. {
  10. $transaction = new \mattvb91\TronTrx\Transaction('', new stdClass());
  11. $this->assertFalse($transaction->isSigned());
  12. $transaction->signature = ['wdwd'];
  13. $this->assertTrue($transaction->isSigned());
  14. }
  15. }