Files
BW/tus-php/tests/Cache/CacheFactoryTest.php
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -05:00

29 lines
730 B
PHP

<?php
namespace TusPhp\Test\Cache;
use TusPhp\Cache\FileStore;
use TusPhp\Cache\RedisStore;
use TusPhp\Cache\ApcuStore;
use TusPhp\Cache\CacheFactory;
use PHPUnit\Framework\TestCase;
/**
* @coversDefaultClass \TusPhp\Cache\CacheFactory
*/
class CacheFactoryTest extends TestCase
{
/**
* @test
*
* @covers ::make
*/
public function it_makes_cache_store_object() : void
{
$this->assertInstanceOf(FileStore::class, CacheFactory::make());
$this->assertInstanceOf(RedisStore::class, CacheFactory::make('redis'));
$this->assertInstanceOf(ApcuStore::class, CacheFactory::make('apcu'));
$this->assertInstanceOf(FileStore::class, CacheFactory::make('invalid'));
}
}