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 @@
/**
* Testcase.
*
* @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
*/
protected $fixture;
public function setUp() {
public function setUp()
{
$this->fixture = new Tx_T3oMembership_Domain_Model_Member();
}
public function tearDown() {
public function tearDown()
{
unset($this->fixture);
}
/**
* @test
*/
public function dummyMethod() {
public function dummyMethod()
{
$this->markTestIncomplete();
}
......
......@@ -14,31 +14,38 @@
/**
* Testcase.
*
* @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
*/
protected $fixture;
public function setUp() {
public function setUp()
{
$this->fixture = new Tx_T3oMembership_Domain_Model_Member();
}
public function tearDown() {
public function tearDown()
{
unset($this->fixture);
}
/**
* @test
*/
public function getNameReturnsInitialValueForString() { }
public function getNameReturnsInitialValueForString()
{
}
/**
* @test
*/
public function setNameForStringSetsName() {
public function setNameForStringSetsName()
{
$this->fixture->setName('Conceived at T3CON10');
$this->assertSame(
......@@ -50,7 +57,8 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/**
* @test
*/
public function getExternalIdReturnsInitialValueForInteger() {
public function getExternalIdReturnsInitialValueForInteger()
{
$this->assertSame(
0,
$this->fixture->getExternalId()
......@@ -60,7 +68,8 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/**
* @test
*/
public function setExternalIdForIntegerSetsExternalId() {
public function setExternalIdForIntegerSetsExternalId()
{
$this->fixture->setExternalId(12);
$this->assertSame(
......@@ -72,22 +81,29 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/**
* @test
*/
public function getEndDateReturnsInitialValueForDateTime() { }
public function getEndDateReturnsInitialValueForDateTime()
{
}
/**
* @test
*/
public function setEndDateForDateTimeSetsEndDate() { }
public function setEndDateForDateTimeSetsEndDate()
{
}
/**
* @test
*/
public function getAddressReturnsInitialValueForString() { }
public function getAddressReturnsInitialValueForString()
{
}
/**
* @test
*/
public function setAddressForStringSetsAddress() {
public function setAddressForStringSetsAddress()
{
$this->fixture->setAddress('Conceived at T3CON10');
$this->assertSame(
......@@ -99,12 +115,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/**
* @test
*/
public function getZipReturnsInitialValueForString() { }
public function getZipReturnsInitialValueForString()
{
}
/**
* @test
*/
public function setZipForStringSetsZip() {
public function setZipForStringSetsZip()
{
$this->fixture->setZip('Conceived at T3CON10');
$this->assertSame(
......@@ -116,12 +135,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/**
* @test
*/
public function getCityReturnsInitialValueForString() { }
public function getCityReturnsInitialValueForString()
{
}
/**
* @test
*/
public function setCityForStringSetsCity() {
public function setCityForStringSetsCity()
{
$this->fixture->setCity('Conceived at T3CON10');
$this->assertSame(
......@@ -133,12 +155,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/**
* @test
*/
public function getCountryReturnsInitialValueForString() { }
public function getCountryReturnsInitialValueForString()
{
}
/**
* @test
*/
public function setCountryForStringSetsCountry() {
public function setCountryForStringSetsCountry()
{
$this->fixture->setCountry('Conceived at T3CON10');
$this->assertSame(
......@@ -150,12 +175,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/**
* @test
*/
public function getEmailReturnsInitialValueForString() { }
public function getEmailReturnsInitialValueForString()
{
}
/**
* @test
*/
public function setEmailForStringSetsEmail() {
public function setEmailForStringSetsEmail()
{
$this->fixture->setEmail('Conceived at T3CON10');
$this->assertSame(
......@@ -167,12 +195,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/**
* @test
*/
public function getUrlReturnsInitialValueForString() { }
public function getUrlReturnsInitialValueForString()
{
}
/**
* @test
*/
public function setUrlForStringSetsUrl() {
public function setUrlForStringSetsUrl()
{
$this->fixture->setUrl('Conceived at T3CON10');
$this->assertSame(
......@@ -184,11 +215,15 @@ class Tx_T3oMembership_Domain_Model_MemberTest extends Tx_Extbase_Tests_Unit_Bas
/**
* @test
*/
public function getMembershipReturnsInitialValueForTx_T3oMembership_Domain_Model_Membership() { }
public function getMembershipReturnsInitialValueForTx_T3oMembership_Domain_Model_Membership()
{
}
/**
* @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 @@
/**
* Testcase.
*
* @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
*/
protected $fixture;
public function setUp() {
public function setUp()
{
$this->fixture = new Tx_T3oMembership_Domain_Model_Membership();
}
public function tearDown() {
public function tearDown()
{
unset($this->fixture);
}
/**
* @test
*/
public function getNameReturnsInitialValueForString() { }
public function getNameReturnsInitialValueForString()
{
}
/**
* @test
*/
public function setNameForStringSetsName() {
public function setNameForStringSetsName()
{
$this->fixture->setName('Conceived at T3CON10');
$this->assertSame(
......@@ -50,12 +57,15 @@ class Tx_T3oMembership_Domain_Model_MembershipTest extends Tx_Extbase_Tests_Unit
/**
* @test
*/
public function getLogoReturnsInitialValueForString() { }
public function getLogoReturnsInitialValueForString()
{
}
/**
* @test
*/
public function setLogoForStringSetsLogo() {
public function setLogoForStringSetsLogo()
{
$this->fixture->setLogo('Conceived at T3CON10');
$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