We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1e69ba commit 36aa2dbCopy full SHA for 36aa2db
tests/OptionsArrayTest.php
@@ -0,0 +1,27 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
5
+namespace Arokettu\Bencode\Tests;
6
7
+use Arokettu\Bencode\Bencode;
8
+use PHPUnit\Framework\TestCase;
9
10
+class OptionsArrayTest extends TestCase
11
+{
12
+ public function testDecoder(): void
13
+ {
14
+ $this->expectException(\InvalidArgumentException::class);
15
+ $this->expectExceptionMessage('$options array must not be used');
16
17
+ Bencode::decode('de', ['any' => 'thing']);
18
+ }
19
20
+ public function testEncoder(): void
21
22
23
24
25
+ Bencode::encode([], ['any' => 'thing']);
26
27
+}
0 commit comments