Commit 332c0636 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

[TASK] Changes Tests to PSR-2

parent 393bca0a
...@@ -14,26 +14,31 @@ ...@@ -14,26 +14,31 @@
/** /**
* Testcase. * Testcase.
*
* @author Thomas Löffler <thomas.loeffler@typo3.org> * @author Thomas Löffler <thomas.loeffler@typo3.org>
*/ */
class Tx_T3o_membership_Controller_MemberControllerTest extends Tx_Extbase_Tests_Unit_BaseTestCase { class Tx_T3o_membership_Controller_MemberControllerTest extends Tx_Extbase_Tests_Unit_BaseTestCase
{
/** /**
* @var Tx_T3oMembership_Domain_Model_Member * @var Tx_T3oMembership_Domain_Model_Member
*/ */
protected $fixture; protected $fixture;
public function setUp() { public function setUp()
{
$this->fixture = new Tx_T3oMembership_Domain_Model_Member(); $this->fixture = new Tx_T3oMembership_Domain_Model_Member();
} }
public function tearDown() { public function tearDown()
{
unset($this->fixture); unset($this->fixture);
} }
/** /**
* @test * @test
*/ */
public function dummyMethod() { public function dummyMethod()
{
$this->markTestIncomplete(); $this->markTestIncomplete();
} }
......
...@@ -14,31 +14,38 @@ ...@@ -14,31 +14,38 @@
/** /**
* Testcase. * Testcase.
*
* @author Thomas Löffler <thomas.loeffler@typo3.org> * @author Thomas Löffler <thomas.loeffler@typo3.org>
*/ */
class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_BaseTestCase { class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_BaseTestCase
{
/** /**
* @var Tx_T3oMembership_Domain_Model_Member * @var Tx_T3oMembership_Domain_Model_Member
*/ */
protected $fixture; protected $fixture;
public function setUp() { public function setUp()
{
$this->fixture = new Tx_T3oMembership_Domain_Model_Member(); $this->fixture = new Tx_T3oMembership_Domain_Model_Member();
} }
public function tearDown() { public function tearDown()
{
unset($this->fixture); unset($this->fixture);
} }
/** /**
* @test * @test
*/ */
public function getNameReturnsInitialValueForString() { } public function getNameReturnsInitialValueForString()
{
}
/** /**
* @test * @test
*/ */
public function setNameForStringSetsName() { public function setNameForStringSetsName()
{
$this->fixture->setName('Conceived at T3CON10'); $this->fixture->setName('Conceived at T3CON10');
$this->assertSame( $this->assertSame(
...@@ -50,7 +57,8 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas ...@@ -50,7 +57,8 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/** /**
* @test * @test
*/ */
public function getExternalIdReturnsInitialValueForInteger() { public function getExternalIdReturnsInitialValueForInteger()
{
$this->assertSame( $this->assertSame(
0, 0,
$this->fixture->getExternalId() $this->fixture->getExternalId()
...@@ -60,7 +68,8 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas ...@@ -60,7 +68,8 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/** /**
* @test * @test
*/ */
public function setExternalIdForIntegerSetsExternalId() { public function setExternalIdForIntegerSetsExternalId()
{
$this->fixture->setExternalId(12); $this->fixture->setExternalId(12);
$this->assertSame( $this->assertSame(
...@@ -72,22 +81,29 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas ...@@ -72,22 +81,29 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/** /**
* @test * @test
*/ */
public function getEndDateReturnsInitialValueForDateTime() { } public function getEndDateReturnsInitialValueForDateTime()
{
}
/** /**
* @test * @test
*/ */
public function setEndDateForDateTimeSetsEndDate() { } public function setEndDateForDateTimeSetsEndDate()
{
}
/** /**
* @test * @test
*/ */
public function getAddressReturnsInitialValueForString() { } public function getAddressReturnsInitialValueForString()
{
}
/** /**
* @test * @test
*/ */
public function setAddressForStringSetsAddress() { public function setAddressForStringSetsAddress()
{
$this->fixture->setAddress('Conceived at T3CON10'); $this->fixture->setAddress('Conceived at T3CON10');
$this->assertSame( $this->assertSame(
...@@ -99,12 +115,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas ...@@ -99,12 +115,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/** /**
* @test * @test
*/ */
public function getZipReturnsInitialValueForString() { } public function getZipReturnsInitialValueForString()
{
}
/** /**
* @test * @test
*/ */
public function setZipForStringSetsZip() { public function setZipForStringSetsZip()
{
$this->fixture->setZip('Conceived at T3CON10'); $this->fixture->setZip('Conceived at T3CON10');
$this->assertSame( $this->assertSame(
...@@ -116,12 +135,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas ...@@ -116,12 +135,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/** /**
* @test * @test
*/ */
public function getCityReturnsInitialValueForString() { } public function getCityReturnsInitialValueForString()
{
}
/** /**
* @test * @test
*/ */
public function setCityForStringSetsCity() { public function setCityForStringSetsCity()
{
$this->fixture->setCity('Conceived at T3CON10'); $this->fixture->setCity('Conceived at T3CON10');
$this->assertSame( $this->assertSame(
...@@ -133,12 +155,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas ...@@ -133,12 +155,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/** /**
* @test * @test
*/ */
public function getCountryReturnsInitialValueForString() { } public function getCountryReturnsInitialValueForString()
{
}
/** /**
* @test * @test
*/ */
public function setCountryForStringSetsCountry() { public function setCountryForStringSetsCountry()
{
$this->fixture->setCountry('Conceived at T3CON10'); $this->fixture->setCountry('Conceived at T3CON10');
$this->assertSame( $this->assertSame(
...@@ -150,12 +175,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas ...@@ -150,12 +175,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/** /**
* @test * @test
*/ */
public function getEmailReturnsInitialValueForString() { } public function getEmailReturnsInitialValueForString()
{
}
/** /**
* @test * @test
*/ */
public function setEmailForStringSetsEmail() { public function setEmailForStringSetsEmail()
{
$this->fixture->setEmail('Conceived at T3CON10'); $this->fixture->setEmail('Conceived at T3CON10');
$this->assertSame( $this->assertSame(
...@@ -167,12 +195,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas ...@@ -167,12 +195,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/** /**
* @test * @test
*/ */
public function getUrlReturnsInitialValueForString() { } public function getUrlReturnsInitialValueForString()
{
}
/** /**
* @test * @test
*/ */
public function setUrlForStringSetsUrl() { public function setUrlForStringSetsUrl()
{
$this->fixture->setUrl('Conceived at T3CON10'); $this->fixture->setUrl('Conceived at T3CON10');
$this->assertSame( $this->assertSame(
...@@ -184,11 +215,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas ...@@ -184,11 +215,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/** /**
* @test * @test
*/ */
public function getMembershipReturnsInitialValueForTx_T3oMembership_Domain_Model_Membership() { } public function getMembershipReturnsInitialValueForTx_T3oMembership_Domain_Model_Membership()
{
}
/** /**
* @test * @test
*/ */
public function setMembershipForTx_T3oMembership_Domain_Model_MembershipSetsMembership() { } public function setMembershipForTx_T3oMembership_Domain_Model_MembershipSetsMembership()
{
}
} }
\ No newline at end of file
...@@ -14,31 +14,38 @@ ...@@ -14,31 +14,38 @@
/** /**
* Testcase. * Testcase.
*
* @author Thomas Löffler <thomas.loeffler@typo3.org> * @author Thomas Löffler <thomas.loeffler@typo3.org>
*/ */
class Tx_T3oMembership_Domain_Model_MembershipTest extends Tx_Extbase_Tests_Unit_BaseTestCase { class Tx_T3oMembership_Domain_Model_MembershipTest extends Tx_Extbase_Tests_Unit_BaseTestCase
{
/** /**
* @var Tx_T3oMembership_Domain_Model_Membership * @var Tx_T3oMembership_Domain_Model_Membership
*/ */
protected $fixture; protected $fixture;
public function setUp() { public function setUp()
{
$this->fixture = new Tx_T3oMembership_Domain_Model_Membership(); $this->fixture = new Tx_T3oMembership_Domain_Model_Membership();
} }
public function tearDown() { public function tearDown()
{
unset($this->fixture); unset($this->fixture);
} }
/** /**
* @test * @test
*/ */
public function getNameReturnsInitialValueForString() { } public function getNameReturnsInitialValueForString()
{
}
/** /**
* @test * @test
*/ */
public function setNameForStringSetsName() { public function setNameForStringSetsName()
{
$this->fixture->setName('Conceived at T3CON10'); $this->fixture->setName('Conceived at T3CON10');
$this->assertSame( $this->assertSame(
...@@ -50,12 +57,15 @@ class Tx_T3oMembership_Domain_Model_MembershipTest extends Tx_Extbase_Tests_Unit ...@@ -50,12 +57,15 @@ class Tx_T3oMembership_Domain_Model_MembershipTest extends Tx_Extbase_Tests_Unit
/** /**
* @test * @test
*/ */
public function getLogoReturnsInitialValueForString() { } public function getLogoReturnsInitialValueForString()
{
}
/** /**
* @test * @test
*/ */
public function setLogoForStringSetsLogo() { public function setLogoForStringSetsLogo()
{
$this->fixture->setLogo('Conceived at T3CON10'); $this->fixture->setLogo('Conceived at T3CON10');
$this->assertSame( $this->assertSame(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment