From 3db3e7af048d0be509bc2c14b5f0bf22b168ecae Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sun, 14 Dec 2014 21:34:16 +0100 Subject: [PATCH] [CLEANUP] Drop the unset from tearDown() --- Tests/Unit/Controller/TestimonialControllerTest.php | 4 ---- Tests/Unit/Domain/Model/AdditionTest.php | 4 ---- Tests/Unit/Domain/Model/TeaBeverageTest.php | 4 ---- Tests/Unit/Domain/Model/TeaTypeTest.php | 4 ---- Tests/Unit/Domain/Model/TestimonialTest.php | 4 ---- Tests/Unit/Domain/Repository/TeaBeverageRepositoryTest.php | 4 ---- Tests/Unit/Domain/Repository/TestimonialRepositoryTest.php | 4 ---- 7 files changed, 28 deletions(-) diff --git a/Tests/Unit/Controller/TestimonialControllerTest.php b/Tests/Unit/Controller/TestimonialControllerTest.php index bba5803..194c7a8 100644 --- a/Tests/Unit/Controller/TestimonialControllerTest.php +++ b/Tests/Unit/Controller/TestimonialControllerTest.php @@ -52,10 +52,6 @@ class TestimonialControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase { $this->subject->injectTestimonialRepository($this->testimonialRepository); } - protected function tearDown() { - unset($this->subject, $this->view, $this->testimonialRepository); - } - /** * @test * @return void diff --git a/Tests/Unit/Domain/Model/AdditionTest.php b/Tests/Unit/Domain/Model/AdditionTest.php index a74c422..62cb400 100644 --- a/Tests/Unit/Domain/Model/AdditionTest.php +++ b/Tests/Unit/Domain/Model/AdditionTest.php @@ -29,10 +29,6 @@ class AdditionTest extends \TYPO3\CMS\Core\Tests\UnitTestCase { $this->subject = new \OliverKlee\Tea\Domain\Model\Addition(); } - protected function tearDown() { - unset($this->subject); - } - /** * @test * @return void diff --git a/Tests/Unit/Domain/Model/TeaBeverageTest.php b/Tests/Unit/Domain/Model/TeaBeverageTest.php index 2c4c6b8..80212ce 100644 --- a/Tests/Unit/Domain/Model/TeaBeverageTest.php +++ b/Tests/Unit/Domain/Model/TeaBeverageTest.php @@ -29,10 +29,6 @@ class TeaBeverageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase { $this->subject = new \OliverKlee\Tea\Domain\Model\TeaBeverage(); } - protected function tearDown() { - unset($this->subject); - } - /** * @test * @return void diff --git a/Tests/Unit/Domain/Model/TeaTypeTest.php b/Tests/Unit/Domain/Model/TeaTypeTest.php index 5c78b83..653c141 100644 --- a/Tests/Unit/Domain/Model/TeaTypeTest.php +++ b/Tests/Unit/Domain/Model/TeaTypeTest.php @@ -29,10 +29,6 @@ class TeaTypeTest extends \TYPO3\CMS\Core\Tests\UnitTestCase { $this->subject = new \OliverKlee\Tea\Domain\Model\TeaType(); } - protected function tearDown() { - unset($this->subject); - } - /** * @test * @return void diff --git a/Tests/Unit/Domain/Model/TestimonialTest.php b/Tests/Unit/Domain/Model/TestimonialTest.php index 2bf880d..cc7dbfc 100644 --- a/Tests/Unit/Domain/Model/TestimonialTest.php +++ b/Tests/Unit/Domain/Model/TestimonialTest.php @@ -29,10 +29,6 @@ class TestimonialTest extends \TYPO3\CMS\Core\Tests\UnitTestCase { $this->subject = new \OliverKlee\Tea\Domain\Model\Testimonial(); } - protected function tearDown() { - unset($this->subject); - } - /** * @test * @return void diff --git a/Tests/Unit/Domain/Repository/TeaBeverageRepositoryTest.php b/Tests/Unit/Domain/Repository/TeaBeverageRepositoryTest.php index bafc978..6524576 100644 --- a/Tests/Unit/Domain/Repository/TeaBeverageRepositoryTest.php +++ b/Tests/Unit/Domain/Repository/TeaBeverageRepositoryTest.php @@ -36,10 +36,6 @@ class TeaBeverageRepositoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase { $this->subject = new \OliverKlee\Tea\Domain\Repository\TeaBeverageRepository($this->objectManager); } - protected function tearDown() { - unset($this->subject, $this->objectManager); - } - /** * @test * @return void diff --git a/Tests/Unit/Domain/Repository/TestimonialRepositoryTest.php b/Tests/Unit/Domain/Repository/TestimonialRepositoryTest.php index 01445f2..07f5a33 100644 --- a/Tests/Unit/Domain/Repository/TestimonialRepositoryTest.php +++ b/Tests/Unit/Domain/Repository/TestimonialRepositoryTest.php @@ -36,10 +36,6 @@ class TestimonialRepositoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase { $this->subject = new \OliverKlee\Tea\Domain\Repository\TestimonialRepository($this->objectManager); } - protected function tearDown() { - unset($this->subject, $this->objectManager); - } - /** * @test * @return void