|
4 | 4 |
|
5 | 5 | namespace Zlodes\PrometheusClient\Tests\Collector; |
6 | 6 |
|
7 | | -use a; |
8 | 7 | use Mockery; |
9 | 8 | use PHPUnit\Framework\TestCase; |
10 | 9 | use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; |
|
16 | 15 | use Zlodes\PrometheusClient\Metric\Histogram; |
17 | 16 | use Zlodes\PrometheusClient\Metric\Summary; |
18 | 17 | use Zlodes\PrometheusClient\Registry\Registry; |
19 | | -use Zlodes\PrometheusClient\Storage\Contracts\CounterStorage; |
20 | | -use Zlodes\PrometheusClient\Storage\Contracts\GaugeStorage; |
21 | | -use Zlodes\PrometheusClient\Storage\Contracts\HistogramStorage; |
22 | | -use Zlodes\PrometheusClient\Storage\Contracts\SummaryStorage; |
| 18 | +use Zlodes\PrometheusClient\Tests\Stubs\CounterStorageStub; |
| 19 | +use Zlodes\PrometheusClient\Tests\Stubs\GaugeStorageStub; |
| 20 | +use Zlodes\PrometheusClient\Tests\Stubs\HistogramStorageStub; |
| 21 | +use Zlodes\PrometheusClient\Tests\Stubs\SummaryStorageStub; |
23 | 22 |
|
24 | 23 | class CollectorFactoryTest extends TestCase |
25 | 24 | { |
@@ -149,10 +148,10 @@ private function createCollectorFactory(Registry $registry): CollectorFactory |
149 | 148 | { |
150 | 149 | return new CollectorFactory( |
151 | 150 | $registry, |
152 | | - Mockery::mock(CounterStorage::class), |
153 | | - Mockery::mock(GaugeStorage::class), |
154 | | - Mockery::mock(HistogramStorage::class), |
155 | | - Mockery::mock(SummaryStorage::class), |
| 151 | + new CounterStorageStub(), |
| 152 | + new GaugeStorageStub(), |
| 153 | + new HistogramStorageStub(), |
| 154 | + new SummaryStorageStub(), |
156 | 155 | new NullLogger(), |
157 | 156 | ); |
158 | 157 | } |
|
0 commit comments