diff --git a/tests/Auto/Test.php b/tests/Auto/Test.php index ba3f1ce..aec1ab4 100644 --- a/tests/Auto/Test.php +++ b/tests/Auto/Test.php @@ -13,13 +13,13 @@ class Test extends TestCase private $tmp; - public function setUp(): void + protected function setUp(): void { $this->tmp = tempnam(sys_get_temp_dir(), "meta-audio-"); } - public function tearDown(): void + protected function tearDown(): void { unlink($this->tmp); unset($this->tmp); diff --git a/tests/ModuleManagerTest.php b/tests/ModuleManagerTest.php index d70e4ce..a3853cb 100644 --- a/tests/ModuleManagerTest.php +++ b/tests/ModuleManagerTest.php @@ -17,14 +17,14 @@ class ModuleManagerTest extends TestCase private $manager; - public function setUp(): void + protected function setUp(): void { $manager = new ModuleManager(); $this->manager = new Intruder($manager); } - public function tearDown(): void + protected function tearDown(): void { unset($this->manager); Mockery::close(); diff --git a/tests/Modules/AbstractModuleTest.php b/tests/Modules/AbstractModuleTest.php index f505348..55f338c 100644 --- a/tests/Modules/AbstractModuleTest.php +++ b/tests/Modules/AbstractModuleTest.php @@ -12,7 +12,7 @@ class AbstractModuleTest extends TestCase { private $module; - public function setUp(): void + protected function setUp(): void { $module = new AbstractModule(); $module->putTags([ @@ -23,7 +23,7 @@ public function setUp(): void } - public function tearDown(): void + protected function tearDown(): void { unset($this->module); } diff --git a/tests/Modules/Id3v2MockTest.php b/tests/Modules/Id3v2MockTest.php index fe74bf8..5ff6bea 100644 --- a/tests/Modules/Id3v2MockTest.php +++ b/tests/Modules/Id3v2MockTest.php @@ -13,7 +13,7 @@ class Id3v2MockTest extends TestCase { private $module; - public function setUp(): void + protected function setUp(): void { $module = new Id3v2(); $this->module = new Intruder($module); diff --git a/tests/Modules/Id3v2Test.php b/tests/Modules/Id3v2Test.php index e0be3e2..d0cc419 100644 --- a/tests/Modules/Id3v2Test.php +++ b/tests/Modules/Id3v2Test.php @@ -13,7 +13,7 @@ class Id3v2Test extends TestCase { private $module; - public function setUp(): void + protected function setUp(): void { $file = new File(__DIR__ . "/../data/test.mp3"); $this->module = new Id3v2(); diff --git a/tests/Mp3Test.php b/tests/Mp3Test.php index 35757b5..26a459d 100644 --- a/tests/Mp3Test.php +++ b/tests/Mp3Test.php @@ -14,7 +14,7 @@ class Mp3Test extends TestCase { - public function tearDown(): void + protected function tearDown(): void { Mockery::close(); }