Moved the mocks statistics loggers to Mocks/

This commit is contained in:
Alex Renoki 2020-08-27 22:13:30 +03:00
parent 70eeb005ef
commit 0c8c5c0d9b
2 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
<?php
namespace BeyondCode\LaravelWebSockets\Tests\Statistics\Logger;
namespace BeyondCode\LaravelWebSockets\Tests\Mocks;
use BeyondCode\LaravelWebSockets\Statistics\Logger\MemoryStatisticsLogger;
class FakeStatisticsLogger extends MemoryStatisticsLogger
class FakeMemoryStatisticsLogger extends MemoryStatisticsLogger
{
/**
* {@inheritdoc}

View File

@ -9,7 +9,7 @@ use BeyondCode\LaravelWebSockets\PubSub\ReplicationInterface;
use BeyondCode\LaravelWebSockets\Statistics\Drivers\StatisticsDriver;
use BeyondCode\LaravelWebSockets\Tests\Mocks\Connection;
use BeyondCode\LaravelWebSockets\Tests\Mocks\Message;
use BeyondCode\LaravelWebSockets\Tests\Statistics\Logger\FakeStatisticsLogger;
use BeyondCode\LaravelWebSockets\Tests\Mocks\FakeMemoryStatisticsLogger;
use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
use GuzzleHttp\Psr7\Request;
use Orchestra\Testbench\BrowserKit\TestCase as BaseTestCase;
@ -58,7 +58,7 @@ abstract class TestCase extends BaseTestCase
$this->statisticsDriver = $this->app->make(StatisticsDriver::class);
StatisticsLogger::swap(new FakeStatisticsLogger(
StatisticsLogger::swap(new FakeMemoryStatisticsLogger(
$this->channelManager,
app(StatisticsDriver::class)
));