diff --git a/tests/BencodeTorrentTest.php b/tests/BencodeTorrentTest.php index e9eaa95..41887b9 100644 --- a/tests/BencodeTorrentTest.php +++ b/tests/BencodeTorrentTest.php @@ -522,4 +522,11 @@ public function testEmptyPath(): void $this->expectException(\RuntimeException::class); $bencode->setData($data); } + + public function testValidateEmptyData(): void + { + $bencode = new BencodeTorrent(); + $this->expectException(\TypeError::class); + $bencode->validate(); + } }