Skip to content

Commit fb7d787

Browse files
authored
Replaced unsupported Medium attributes on methods with Group slow (#118)
1 parent 29c7b40 commit fb7d787

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/CachePoolTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use PHPUnit\Framework\Attributes\Before;
1616
use PHPUnit\Framework\Attributes\DataProvider;
1717
use PHPUnit\Framework\Attributes\Group;
18-
use PHPUnit\Framework\Attributes\Medium;
1918
use PHPUnit\Framework\TestCase;
2019
use Psr\Cache\CacheItemInterface;
2120
use Psr\Cache\CacheItemPoolInterface;
@@ -495,7 +494,7 @@ public function testCommit()
495494
/**
496495
* @medium
497496
*/
498-
#[Medium]
497+
#[Group('slow')]
499498
public function testExpiration()
500499
{
501500
if (isset($this->skippedTests[__FUNCTION__])) {
@@ -870,7 +869,7 @@ public function testSavingObject()
870869
/**
871870
* @medium
872871
*/
873-
#[Medium]
872+
#[Group('slow')]
874873
public function testHasItemReturnsFalseWhenDeferredItemIsExpired()
875874
{
876875
if (isset($this->skippedTests[__FUNCTION__])) {

src/SimpleCacheTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use PHPUnit\Framework\Attributes\Before;
1616
use PHPUnit\Framework\Attributes\DataProvider;
1717
use PHPUnit\Framework\Attributes\Group;
18-
use PHPUnit\Framework\Attributes\Medium;
1918
use PHPUnit\Framework\TestCase;
2019
use Psr\SimpleCache\CacheInterface;
2120

@@ -178,7 +177,7 @@ public function testSet()
178177
/**
179178
* @medium
180179
*/
181-
#[Medium]
180+
#[Group('slow')]
182181
public function testSetTtl()
183182
{
184183
if (isset($this->skippedTests[__FUNCTION__])) {
@@ -277,7 +276,7 @@ public function testSetMultipleWithIntegerArrayKey()
277276
/**
278277
* @medium
279278
*/
280-
#[Medium]
279+
#[Group('slow')]
281280
public function testSetMultipleTtl()
282281
{
283282
if (isset($this->skippedTests[__FUNCTION__])) {

0 commit comments

Comments
 (0)