Skip to content

Commit e292cbf

Browse files
committed
- adds shmop tests
1 parent 24a2d6f commit e292cbf

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace Tests\Koded\Caching\Integration;
4+
5+
use Koded\Caching\CachePool;
6+
use Psr\Cache\CacheItemPoolInterface;
7+
8+
class ShmopClientTest extends CachePoolIntegrationTest
9+
{
10+
/**
11+
* @return CacheItemPoolInterface that is used in the tests
12+
*/
13+
public function createCachePool()
14+
{
15+
return CachePool::use('shmop');
16+
}
17+
18+
protected function setUp(): void
19+
{
20+
if (false === extension_loaded('shmop')) {
21+
$this->markTestSkipped('shmop extension is not loaded.');
22+
}
23+
24+
parent::setUp();
25+
}
26+
}

0 commit comments

Comments
 (0)