-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sfsmfc
authored and
sfsmfc
committed
Sep 2, 2016
1 parent
c0690f4
commit 5f14e4e
Showing
24 changed files
with
721 additions
and
582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
language: php | ||
|
||
matrix: | ||
include: | ||
- php: 5.5 | ||
env: TYPO3_VERSION=^7.6 | ||
- php: 5.6 | ||
env: TYPO3_VERSION=^7.6 | ||
- php: 7 | ||
env: TYPO3_VERSION=^7.6 | ||
- php: 7 | ||
env: TYPO3_VERSION=dev-master | ||
allow_failures: | ||
- env: TYPO3_VERSION=dev-master | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
before_install: | ||
- phpenv config-rm xdebug.ini | ||
- composer self-update | ||
- composer --version | ||
|
||
before_script: | ||
- > | ||
if [ -n "$TRAVIS_TAG" ]; then | ||
composer set-version $TRAVIS_TAG | ||
# If this fails, we forgot to update version numbers before tagging the release | ||
test -z "$(git diff --shortstat 2> /dev/null | tail -n1)"; | ||
fi | ||
- composer require typo3/cms=$TYPO3_VERSION | ||
- export TYPO3_PATH_WEB="$PWD/.Build/Web" | ||
|
||
script: | ||
- > | ||
echo; | ||
echo "Running unit tests"; | ||
.Build/bin/phpunit -c .Build/vendor/typo3/cms/typo3/sysext/core/Build/UnitTests.xml Tests/Unit/ | ||
- > | ||
echo; | ||
echo "Executing PHP code sniffer"; | ||
.Build/bin/phpcs --runtime-set ignore_warnings_on_exit true --standard=PSR2 Classes/ | ||
after_script: | ||
- > | ||
echo; | ||
echo "Everything done"; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,113 +1,120 @@ | ||
<?php | ||
namespace SJBR\StaticInfoTables\Domain\Model; | ||
/*************************************************************** | ||
* Copyright notice | ||
* | ||
* (c) 2011-2012 Armin Rüdiger Vieweg <[email protected]> | ||
* (c) 2013 Stanislas Rolland <typo3(arobas)sjbr.ca> | ||
* (c) 2015 Tomasz Krawczyk <tomasz(na)typo3.pl> | ||
* | ||
* All rights reserved | ||
* | ||
* This script is part of the TYPO3 project. The TYPO3 project is | ||
* free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* The GNU General Public License can be found at | ||
* http://www.gnu.org/copyleft/gpl.html. | ||
* | ||
* This script is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* This copyright notice MUST APPEAR in all copies of the script! | ||
***************************************************************/ | ||
|
||
/*************************************************************** | ||
* Copyright notice | ||
* | ||
* (c) 2011-2012 Armin Rüdiger Vieweg <[email protected]> | ||
* (c) 2013 Stanislas Rolland <typo3(arobas)sjbr.ca> | ||
* (c) 2015 Tomasz Krawczyk <tomasz(na)typo3.pl> | ||
* | ||
* All rights reserved | ||
* | ||
* This script is part of the TYPO3 project. The TYPO3 project is | ||
* free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* The GNU General Public License can be found at | ||
* http://www.gnu.org/copyleft/gpl.html. | ||
* | ||
* This script is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* This copyright notice MUST APPEAR in all copies of the script! | ||
***************************************************************/ | ||
/** | ||
* The Country model | ||
* | ||
* @copyright Copyright belongs to the respective authors | ||
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later | ||
*/ | ||
class Country extends AbstractEntity { | ||
/** | ||
* The Polish short name | ||
* @var string | ||
*/ | ||
protected $shortNamePl = ''; | ||
class Country extends AbstractEntity | ||
{ | ||
/** | ||
* The Polish short name | ||
* @var string | ||
*/ | ||
protected $shortNamePl = ''; | ||
|
||
/** | ||
* The Polish official name | ||
* @var string | ||
*/ | ||
protected $officialNamePl = ''; | ||
|
||
/** | ||
* The Polish official name | ||
* @var string | ||
*/ | ||
protected $officialNamePl = ''; | ||
/** | ||
* The Polish capital name | ||
* @var string | ||
*/ | ||
protected $capitalPl = ''; | ||
|
||
/** | ||
* The Polish capital name | ||
* @var string | ||
*/ | ||
protected $capitalPl = ''; | ||
|
||
/** | ||
* Sets the Polish short name. | ||
* | ||
* @param string $shortNamePl | ||
* | ||
* @return void | ||
*/ | ||
public function setShortNamePl($shortNamePl) { | ||
$this->shortNamePl = $shortNamePl; | ||
} | ||
/** | ||
* Sets the Polish short name. | ||
* | ||
* @param string $shortNamePl | ||
* | ||
* @return void | ||
*/ | ||
public function setShortNamePl($shortNamePl) | ||
{ | ||
$this->shortNamePl = $shortNamePl; | ||
} | ||
|
||
/** | ||
* Gets the Polish short name. | ||
* | ||
* @return string | ||
*/ | ||
public function getShortNamePl() { | ||
return $this->shortNamePl; | ||
} | ||
/** | ||
* Gets the Polish short name. | ||
* | ||
* @return string | ||
*/ | ||
public function getShortNamePl() | ||
{ | ||
return $this->shortNamePl; | ||
} | ||
|
||
/** | ||
* Sets the Polish short name. | ||
* | ||
* @param string $officialNamePl | ||
* | ||
* @return void | ||
*/ | ||
public function setOfficialtNamePl($officialNamePl) { | ||
$this->officialNamePl = $officialNamePl; | ||
} | ||
/** | ||
* Sets the Polish short name. | ||
* | ||
* @param string $officialNamePl | ||
* | ||
* @return void | ||
*/ | ||
public function setOfficialtNamePl($officialNamePl) | ||
{ | ||
$this->officialNamePl = $officialNamePl; | ||
} | ||
|
||
/** | ||
* Gets the Polish short name. | ||
* | ||
* @return string | ||
*/ | ||
public function getOfficialNamePl() { | ||
return $this->officialNamePl; | ||
} | ||
/** | ||
* Gets the Polish short name. | ||
* | ||
* @return string | ||
*/ | ||
public function getOfficialNamePl() | ||
{ | ||
return $this->officialNamePl; | ||
} | ||
|
||
/** | ||
* Sets the Polish short name. | ||
* | ||
* @param string $capitalPl | ||
* | ||
* @return void | ||
*/ | ||
public function setCapitalPl($capitalPl) { | ||
$this->capitalPl = $capitalPl; | ||
} | ||
/** | ||
* Sets the Polish short name. | ||
* | ||
* @param string $capitalPl | ||
* | ||
* @return void | ||
*/ | ||
public function setCapitalPl($capitalPl) | ||
{ | ||
$this->capitalPl = $capitalPl; | ||
} | ||
|
||
/** | ||
* Gets the Polish short name. | ||
* | ||
* @return string | ||
*/ | ||
public function getCapitalPl() { | ||
return $this->capitalPl; | ||
} | ||
/** | ||
* Gets the Polish short name. | ||
* | ||
* @return string | ||
*/ | ||
public function getCapitalPl() | ||
{ | ||
return $this->capitalPl; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
namespace Mselbach\StaticInfoTablesPl\Tests\Unit\Domain\Model; | ||
use TYPO3\CMS\Core\Tests\UnitTestCase; | ||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; | ||
|
||
/** | ||
* CountryTest | ||
*/ | ||
class CountryTest extends UnitTestCase | ||
{ | ||
/** | ||
* @test | ||
*/ | ||
public function testRegistration() | ||
{ | ||
|
||
} | ||
} |
Oops, something went wrong.