From 956e8b5a09ecf16967df787c009aec37da5319f8 Mon Sep 17 00:00:00 2001 From: mostwanted Date: Thu, 2 Jan 2014 00:01:54 +0100 Subject: [PATCH] Add @return void annotation to test methods --- Tests/Unit/Domain/Model/TeaBeverageTest.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Tests/Unit/Domain/Model/TeaBeverageTest.php b/Tests/Unit/Domain/Model/TeaBeverageTest.php index f4dd1eb..80b79e9 100644 --- a/Tests/Unit/Domain/Model/TeaBeverageTest.php +++ b/Tests/Unit/Domain/Model/TeaBeverageTest.php @@ -46,6 +46,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase { /** * @test + * @return void */ public function getSizeInitiallyReturnsZero() { $this->assertSame( @@ -56,6 +57,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase { /** * @test + * @return void */ public function setSizeSetsSize() { $this->subject->setSize(1234.56); @@ -68,6 +70,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase { /** * @test + * @return void */ public function getTypeInitiallyReturnsNull() { $this->assertNull( @@ -77,6 +80,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase { /** * @test + * @return void */ public function setTypeSetsType() { $type = new \OliverKlee\Tea\Domain\Model\TeaType(); @@ -90,6 +94,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase { /** * @test + * @return void */ public function getAdditionsInitiallyReturnsEmptyStorage() { $this->assertEquals( @@ -100,6 +105,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase { /** * @test + * @return void */ public function setAdditionsSetsAdditions() { $items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); @@ -113,6 +119,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase { /** * @test + * @return void */ public function addAdditionAddsAddition() { $items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); @@ -128,6 +135,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase { /** * @test + * @return void */ public function removeAdditionRemovesAddition() { $items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); @@ -144,6 +152,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase { /** * @test + * @return void */ public function getTestimonialsInitiallyReturnsEmptyStorage() { $this->assertEquals( @@ -154,6 +163,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase { /** * @test + * @return void */ public function setTestimonialsSetsTestimonials() { $items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); @@ -167,6 +177,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase { /** * @test + * @return void */ public function addTestimonialAddsTestimonial() { $items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); @@ -182,6 +193,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase { /** * @test + * @return void */ public function removeTestimonialRemovesTestimonial() { $items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); @@ -195,4 +207,4 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase { $this->subject->getTestimonials()->contains($newItem) ); } -} \ No newline at end of file +}