1212
1313namespace Tests \Dashboards ;
1414
15+ use ReflectionException ;
1516use RobiNN \Pca \Dashboards \Memcached \Compatibility \Memcache ;
1617use RobiNN \Pca \Dashboards \Memcached \Compatibility \Memcached ;
18+ use RobiNN \Pca \Dashboards \Memcached \Compatibility \PHPMem ;
1719use RobiNN \Pca \Dashboards \Memcached \MemcachedDashboard ;
1820use RobiNN \Pca \Dashboards \Memcached \MemcachedException ;
1921use RobiNN \Pca \Http ;
@@ -26,18 +28,21 @@ final class MemcachedTest extends TestCase {
2628 private MemcachedDashboard $ dashboard ;
2729
2830 /**
29- * @var Memcache|Memcached
31+ * @var Memcached| Memcache|PHPMem
3032 */
3133 private $ memcached ;
3234
35+ /**
36+ * @throws ReflectionException
37+ */
3338 protected function setUp (): void {
3439 $ this ->template = new Template ();
3540 $ this ->dashboard = new MemcachedDashboard ($ this ->template );
3641 $ this ->memcached = self ::callMethod ($ this ->dashboard , 'connect ' , ['host ' => '127.0.0.1 ' ]);
3742 }
3843
3944 /**
40- * @throws MemcachedException
45+ * @throws MemcachedException|ReflectionException
4146 */
4247 public function testDeleteKey (): void {
4348 $ key = 'pu-test-delete-key ' ;
@@ -54,7 +59,7 @@ public function testDeleteKey(): void {
5459 }
5560
5661 /**
57- * @throws MemcachedException
62+ * @throws MemcachedException|ReflectionException
5863 */
5964 public function testDeleteKeys (): void {
6065 $ key1 = 'pu-test-delete-key1 ' ;
@@ -114,7 +119,7 @@ public function testGetKey(): void {
114119 }
115120
116121 /**
117- * @throws MemcachedException
122+ * @throws MemcachedException|ReflectionException
118123 */
119124 public function testSaveKey (): void {
120125 $ key = 'pu-test-save ' ;
0 commit comments