Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced unsupported Medium attribute on methods with Group('slow') #118

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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