BlockTest.php 375 B

12345678910111213141516171819
  1. <?php
  2. use mattvb91\TronTrx\Block;
  3. use PHPUnit\Framework\TestCase;
  4. class BlockTest extends TestCase
  5. {
  6. /**
  7. * @covers \mattvb91\TronTrx\Block::__construct
  8. */
  9. public function testConstructorThrowsException()
  10. {
  11. new Block('blockId', new stdClass());
  12. $this->expectException(Exception::class);
  13. new Block('', new stdClass());
  14. }
  15. }