We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a030b6 commit d2dacb0Copy full SHA for d2dacb0
tests/BencodeTorrentTest.php
@@ -522,4 +522,11 @@ public function testEmptyPath(): void
522
$this->expectException(\RuntimeException::class);
523
$bencode->setData($data);
524
}
525
+
526
+ public function testValidateEmptyData(): void
527
+ {
528
+ $bencode = new BencodeTorrent();
529
+ $this->expectException(\TypeError::class);
530
+ $bencode->validate();
531
+ }
532
0 commit comments