Documentation and some fix

This commit is contained in:
Alex
2025-08-15 20:15:33 +03:00
parent ea1947239e
commit 00da3af39d
6 changed files with 154 additions and 20 deletions
+12
View File
@@ -1980,4 +1980,16 @@ final class ApiTest extends TestCase
$this->assertSame($expectedDetails, $result);
}
#[Test]
public function constructorThrowsExceptionWhenNoTokenAndNoClientProvided(): void
{
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('You must provide either an access token or a client.');
new Api(
accessToken: null,
client: null
);
}
}