mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
40 lines
901 B
PHP
40 lines
901 B
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.1
|
|
*
|
|
* @package TBD
|
|
* @author OMS Development Team <dev@oms.com>
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
|
|
namespace Tests\PHPUnit\phpOMS\DataStorage\Cache;
|
|
|
|
require_once __DIR__ . '/../../../../../phpOMS/Autoloader.php';
|
|
|
|
use phpOMS\DataStorage\Cache\CacheFactory;
|
|
|
|
class CacheFactoryTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
public function testCreate()
|
|
{
|
|
self::assertInstanceOf(
|
|
\phpOMS\DataStorage\Cache\FileCache::class,
|
|
CacheFactory::create(['type' => 'file', 'path' => 'Cache'])
|
|
);
|
|
}
|
|
|
|
/**
|
|
* @expectedException \InvalidArgumentException
|
|
*/
|
|
public function testInvalidCacheType()
|
|
{
|
|
CacheFactory::create(['type' => 'invalid', 'path' => 'Cache']);
|
|
}
|
|
}
|
|
|