for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the FreshCentrifugoBundle.
*
* (c) Artem Henvald <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Fresh\CentrifugoBundle\Service;
/**
* FakeCentrifugo.
* @author Artem Henvald <[email protected]>
class FakeCentrifugo implements CentrifugoInterface
{
* {@inheritdoc}
public function publish(array $data, string $channel): void
// noop
}
public function broadcast(array $data, array $channels): void
public function unsubscribe(string $user, string $channel): void
public function disconnect(string $user): void
public function presence(string $channel): array
return [];
public function presenceStats(string $channel): array
public function history(string $channel): array
public function historyRemove(string $channel): void
public function channels(): array
public function info(): array
public function batchRequest(array $commands): array