From 945ae898ac5afb340785da8e256c0e3c4ef9cb30 Mon Sep 17 00:00:00 2001 From: Vladimir Bryzgalov Date: Tue, 12 May 2026 17:34:47 +0500 Subject: [PATCH] fix(wpmc S2): drop redundant Mockery::close from TestCase teardown Brain\Monkey\tearDown() already calls Mockery::close internally; calling it explicitly duplicates the close. --- tests/TestCase.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 1b9e9e0..e6b34e7 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -4,7 +4,6 @@ declare(strict_types=1); namespace WPMultiCity\Tests; use Brain\Monkey; -use Mockery; use PHPUnit\Framework\TestCase as BaseTestCase; abstract class TestCase extends BaseTestCase @@ -18,7 +17,6 @@ abstract class TestCase extends BaseTestCase protected function tearDown(): void { Monkey\tearDown(); - Mockery::close(); parent::tearDown(); } }