diff --git a/tests/BridgeImplementationTest.php b/tests/BridgeImplementationTest.php index e45de77f..f95ef5ee 100644 --- a/tests/BridgeImplementationTest.php +++ b/tests/BridgeImplementationTest.php @@ -67,7 +67,11 @@ class BridgeImplementationTest extends TestCase { foreach($this->obj::PARAMETERS as $context => $params) { if ($multiContexts) { $this->assertIsString($context, 'invalid context name'); - $this->assertNotEmpty($context, 'empty context name'); + + // Pixiv has a context that is the empty string, for BC. + if (! ($this->obj instanceof PixivBridge)) { + $this->assertNotEmpty($context, 'The context name cannot be empty'); + } } if (empty($params)) {