Skip to content

Commit d2dacb0

Browse files
author
itismadness
committed
Add empty data validate test
1 parent 9a030b6 commit d2dacb0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/BencodeTorrentTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,4 +522,11 @@ public function testEmptyPath(): void
522522
$this->expectException(\RuntimeException::class);
523523
$bencode->setData($data);
524524
}
525+
526+
public function testValidateEmptyData(): void
527+
{
528+
$bencode = new BencodeTorrent();
529+
$this->expectException(\TypeError::class);
530+
$bencode->validate();
531+
}
525532
}

0 commit comments

Comments
 (0)