This repository was archived by the owner on Oct 22, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
tests/Test/Prometheus/InMemory Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php
2+
3+
4+ namespace Test \Prometheus \InMemory ;
5+
6+ use Prometheus \Storage \InMemory ;
7+ use Test \Prometheus \AbstractCollectorRegistryTest ;
8+
9+ class CollectorRegistryTest extends AbstractCollectorRegistryTest
10+ {
11+ public function configureAdapter ()
12+ {
13+ $ this ->adapter = new InMemory ();
14+ $ this ->adapter ->flushMemory ();
15+ }
16+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+
4+ namespace Test \Prometheus \InMemory ;
5+
6+ use Prometheus \Storage \InMemory ;
7+ use Test \Prometheus \AbstractCounterTest ;
8+
9+ /**
10+ * See https://prometheus.io/docs/instrumenting/exposition_formats/
11+ */
12+ class CounterTest extends AbstractCounterTest
13+ {
14+
15+ public function configureAdapter ()
16+ {
17+ $ this ->adapter = new InMemory ();
18+ $ this ->adapter ->flushMemory ();
19+ }
20+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+
4+ namespace Test \Prometheus \InMemory ;
5+
6+ use Prometheus \Storage \InMemory ;
7+ use Test \Prometheus \AbstractGaugeTest ;
8+
9+ /**
10+ * See https://prometheus.io/docs/instrumenting/exposition_formats/
11+ */
12+ class GaugeTest extends AbstractGaugeTest
13+ {
14+
15+ public function configureAdapter ()
16+ {
17+ $ this ->adapter = new InMemory ();
18+ $ this ->adapter ->flushMemory ();
19+ }
20+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+
4+ namespace Test \Prometheus \InMemory ;
5+
6+ use Prometheus \Storage \InMemory ;
7+ use Test \Prometheus \AbstractHistogramTest ;
8+
9+ /**
10+ * See https://prometheus.io/docs/instrumenting/exposition_formats/
11+ */
12+ class HistogramTest extends AbstractHistogramTest
13+ {
14+
15+ public function configureAdapter ()
16+ {
17+ $ this ->adapter = new InMemory ();
18+ $ this ->adapter ->flushMemory ();
19+ }
20+ }
21+
You can’t perform that action at this time.
0 commit comments