Files
Testing/tus-php/tests/Cache/CacheFactoryTest.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -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'));
}
}