Skip to content

Commit

Permalink
Add test for Mock driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrylinooo committed Sep 24, 2020
1 parent aa07bdf commit 16b6ceb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/SimpleCache/Driver/MockTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Shieldon Simple Cache package.
*
* (c) Terry L. <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Shieldon\Test\SimpleCache;

use Psr\SimpleCache\CacheInterface;
use Shieldon\SimpleCache\Driver\Mock;
use Shieldon\Test\SimpleCache\DriverIntegrationTestCase;

class MockTest extends DriverIntegrationTestCase
{
public function getCacheDriver()
{
$cache = new Mock();

return $cache;
}

public function testCacheDriver()
{
$driver = $this->getCacheDriver();
$this->assertTrue($driver instanceof CacheInterface);
}
}

0 comments on commit 16b6ceb

Please sign in to comment.