From 46720272cfb9957b56e90b67b52f950948b61b69 Mon Sep 17 00:00:00 2001 From: Zlatoslav Desyatnikov Date: Sun, 29 Oct 2023 14:54:02 +0400 Subject: [PATCH] docs(readme): Fix storage testing section Closes #11 --- README.md | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 441d2df..0b50418 100644 --- a/README.md +++ b/README.md @@ -190,16 +190,32 @@ Example can be found in [InMemoryStorage](PrometheusClient/Storage/InMemoryStora #### Storage Testing -There is a simple [trait](PrometheusClient/Storage/StorageTesting.php) to tests any storage you want. Here is an example: +There are four useful traits to simplify your storage testing: + +1. [CounterStorageTesting](./src/Storage/Testing/CounterStorageTesting.php) +2. [GaugeStorageTesting](./src/Storage/Testing/GaugeStorageTesting.php) +3. [HistogramStorageTesting](./src/Storage/Testing/HistogramStorageTesting.php) +4. [SummaryStorageTesting](./src/Storage/Testing/SummaryStorageTesting.php) + +They provide you a set of tests to check your storage implementation to be compatible with the library. + +Example: ```php -class InMemoryStorageTest extends TestCase +