Skip to content

Commit

Permalink
Replaced unsupported Medium attributes on methods with Group slow
Browse files Browse the repository at this point in the history
  • Loading branch information
maryo committed Sep 17, 2024
1 parent 29c7b40 commit 4ad36ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/CachePoolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use PHPUnit\Framework\Attributes\Before;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Medium;
use PHPUnit\Framework\TestCase;
use Psr\Cache\CacheItemInterface;
use Psr\Cache\CacheItemPoolInterface;
Expand Down Expand Up @@ -495,7 +494,7 @@ public function testCommit()
/**
* @medium
*/
#[Medium]
#[Group('slow')]
public function testExpiration()
{
if (isset($this->skippedTests[__FUNCTION__])) {
Expand Down Expand Up @@ -870,7 +869,7 @@ public function testSavingObject()
/**
* @medium
*/
#[Medium]
#[Group('slow')]
public function testHasItemReturnsFalseWhenDeferredItemIsExpired()
{
if (isset($this->skippedTests[__FUNCTION__])) {
Expand Down
5 changes: 2 additions & 3 deletions src/SimpleCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use PHPUnit\Framework\Attributes\Before;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Medium;
use PHPUnit\Framework\TestCase;
use Psr\SimpleCache\CacheInterface;

Expand Down Expand Up @@ -178,7 +177,7 @@ public function testSet()
/**
* @medium
*/
#[Medium]
#[Group('slow')]
public function testSetTtl()
{
if (isset($this->skippedTests[__FUNCTION__])) {
Expand Down Expand Up @@ -277,7 +276,7 @@ public function testSetMultipleWithIntegerArrayKey()
/**
* @medium
*/
#[Medium]
#[Group('slow')]
public function testSetMultipleTtl()
{
if (isset($this->skippedTests[__FUNCTION__])) {
Expand Down

0 comments on commit 4ad36ba

Please sign in to comment.