From b800eea5811b8ea711c93e2681bcbf6d86fae284 Mon Sep 17 00:00:00 2001 From: peter279k Date: Sat, 23 Jan 2021 22:59:56 +0800 Subject: [PATCH] Improve PHPUnit fixtures --- src/Conso/Testing/TestCase.php | 2 +- tests/Unit/CommandInvokerTest.php | 2 +- tests/Unit/CommandLinkerTest.php | 2 +- tests/Unit/CommandsTableTest.php | 2 +- tests/Unit/ConsoTest.php | 2 +- tests/Unit/InputTest.php | 2 +- tests/Unit/OutputTest.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Conso/Testing/TestCase.php b/src/Conso/Testing/TestCase.php index 3103d98..dfbfeb5 100644 --- a/src/Conso/Testing/TestCase.php +++ b/src/Conso/Testing/TestCase.php @@ -31,7 +31,7 @@ class TestCase extends PHPUnitTestCase * * @return void */ - public function setUp(): void + protected function setUp(): void { $this->output = new Output(); $this->output->disableAnsi(); diff --git a/tests/Unit/CommandInvokerTest.php b/tests/Unit/CommandInvokerTest.php index bdc69d2..b499cad 100644 --- a/tests/Unit/CommandInvokerTest.php +++ b/tests/Unit/CommandInvokerTest.php @@ -33,7 +33,7 @@ class CommandInvokerTest extends TestCase * * @return void */ - public function setUp(): void + protected function setUp(): void { parent::setUp(); diff --git a/tests/Unit/CommandLinkerTest.php b/tests/Unit/CommandLinkerTest.php index f5cb37e..89996bc 100644 --- a/tests/Unit/CommandLinkerTest.php +++ b/tests/Unit/CommandLinkerTest.php @@ -33,7 +33,7 @@ class CommandLinkerTest extends TestCase * * @return void */ - public function setUp(): void + protected function setUp(): void { parent::setUp(); diff --git a/tests/Unit/CommandsTableTest.php b/tests/Unit/CommandsTableTest.php index 8962b94..f92ac35 100644 --- a/tests/Unit/CommandsTableTest.php +++ b/tests/Unit/CommandsTableTest.php @@ -31,7 +31,7 @@ class CommandsTableTest extends TestCase * * @return void */ - public function setUp(): void + protected function setUp(): void { $this->table = new CommandsTable(); } diff --git a/tests/Unit/ConsoTest.php b/tests/Unit/ConsoTest.php index 2da3f85..98012a7 100644 --- a/tests/Unit/ConsoTest.php +++ b/tests/Unit/ConsoTest.php @@ -25,7 +25,7 @@ class ConsoTest extends TestCase * * @return void */ - public function setUp(): void + protected function setUp(): void { parent::setUp(); } diff --git a/tests/Unit/InputTest.php b/tests/Unit/InputTest.php index 226acd0..3ea6d9b 100644 --- a/tests/Unit/InputTest.php +++ b/tests/Unit/InputTest.php @@ -31,7 +31,7 @@ class InputTest extends TestCase * * @return void */ - public function setUp(): void + protected function setUp(): void { $this->input = new Input('make:controller user --crud --test=value'); } diff --git a/tests/Unit/OutputTest.php b/tests/Unit/OutputTest.php index 86958e4..6788a16 100644 --- a/tests/Unit/OutputTest.php +++ b/tests/Unit/OutputTest.php @@ -24,7 +24,7 @@ class OutputTest extends TestCase * * @return void */ - public function setUp(): void + protected function setUp(): void { parent::setUp(); }