diff --git a/tests/FormAccessibleTest.php b/tests/FormAccessibleTest.php index 3471d1e..4201850 100644 --- a/tests/FormAccessibleTest.php +++ b/tests/FormAccessibleTest.php @@ -14,7 +14,7 @@ use Mockery as m; class FormAccessibleTest extends PHPUnit\Framework\TestCase { - public function setUp() + protected function setUp(): void { Capsule::table('models')->truncate(); Model::unguard(); diff --git a/tests/FormBuilderTest.php b/tests/FormBuilderTest.php index 2dc3379..9845571 100644 --- a/tests/FormBuilderTest.php +++ b/tests/FormBuilderTest.php @@ -22,7 +22,7 @@ class FormBuilderTest extends PHPUnit\Framework\TestCase /** * Setup the test environment. */ - public function setUp() + protected function setUp(): void { $this->urlGenerator = new UrlGenerator(new RouteCollection(), Request::create('/foo', 'GET')); $this->viewFactory = m::mock(Factory::class); @@ -46,7 +46,7 @@ class FormBuilderTest extends PHPUnit\Framework\TestCase /** * Destroy the test environment. */ - public function tearDown() + protected function tearDown(): void { m::close(); } diff --git a/tests/HtmlBuilderTest.php b/tests/HtmlBuilderTest.php index f79320a..2e1400a 100644 --- a/tests/HtmlBuilderTest.php +++ b/tests/HtmlBuilderTest.php @@ -13,14 +13,14 @@ class HtmlBuilderTest extends PHPUnit\Framework\TestCase /** * Setup the test environment. */ - public function setUp() + protected function setUp(): void { $this->urlGenerator = new UrlGenerator(new RouteCollection(), Request::create('/foo', 'GET')); $this->viewFactory = m::mock(Factory::class); $this->htmlBuilder = new HtmlBuilder($this->urlGenerator, $this->viewFactory); } - public function tearDown() + protected function tearDown(): void { m::close(); }