We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e255921 commit e433087Copy full SHA for e433087
tests/ApbctWP/HTTP/TestSFWFilesDownloader.php
@@ -50,6 +50,18 @@ protected function tearDown(): void
50
$apbct = $this->apbctBackup;
51
}
52
53
+ /**
54
+ * @test
55
+ */
56
+ public function testThrowsExceptionWhenInvalidServicePassed()
57
+ {
58
+ $this->expectException(\InvalidArgumentException::class);
59
+ $this->expectExceptionMessage('Service must be an instance of');
60
+
61
+ // Pass an invalid object (not HTTPMultiRequestService)
62
+ new SFWFilesDownloader(new \stdClass());
63
+ }
64
65
/**
66
* @test
67
*/
0 commit comments