Skip to content

Commit

Permalink
Merge pull request #134 from DataValues/backwardsCompat
Browse files Browse the repository at this point in the history
Drop compatibility with DataValues Interfaces <0.2 and Common <0.3
  • Loading branch information
JeroenDeDauw committed Aug 2, 2018
2 parents 7af6981 + 5cff367 commit 31dd3fa
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 58 deletions.
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -23,8 +23,8 @@
"require": {
"php": ">=5.5.9",
"data-values/data-values": "~2.0|~1.0|~0.1",
"data-values/interfaces": "~0.2.0|~0.1.5",
"data-values/common": "~0.4.0|~0.3.0|~0.2.0"
"data-values/interfaces": "~0.2.0",
"data-values/common": "~0.4.0|~0.3.0"
},
"require-dev": {
"phpunit/phpunit": "~4.8",
Expand Down
7 changes: 0 additions & 7 deletions tests/ValueFormatters/TimeFormatterTest.php
Expand Up @@ -18,13 +18,6 @@
*/
class TimeFormatterTest extends ValueFormatterTestBase {

/**
* @deprecated since DataValues Interfaces 0.2, just use getInstance.
*/
protected function getFormatterClass() {
throw new \LogicException( 'Should not be called, use getInstance' );
}

/**
* @see ValueFormatterTestBase::getInstance
*
Expand Down
7 changes: 0 additions & 7 deletions tests/ValueParsers/CalendarModelParserTest.php
Expand Up @@ -17,13 +17,6 @@
*/
class CalendarModelParserTest extends ValueParserTestBase {

/**
* @deprecated since DataValues Common 0.3, just use getInstance.
*/
protected function getParserClass() {
throw new \LogicException( 'Should not be called, use getInstance' );
}

/**
* @see ValueParserTestBase::getInstance
*
Expand Down
7 changes: 0 additions & 7 deletions tests/ValueParsers/EraParserTest.php
Expand Up @@ -18,13 +18,6 @@
*/
class EraParserTest extends StringValueParserTest {

/**
* @deprecated since DataValues Common 0.3, just use getInstance.
*/
protected function getParserClass() {
throw new \LogicException( 'Should not be called, use getInstance' );
}

/**
* @see ValueParserTestBase::getInstance
*
Expand Down
7 changes: 0 additions & 7 deletions tests/ValueParsers/IsoTimestampParserTest.php
Expand Up @@ -19,13 +19,6 @@
*/
class IsoTimestampParserTest extends ValueParserTestBase {

/**
* @deprecated since DataValues Common 0.3, just use getInstance.
*/
protected function getParserClass() {
throw new \LogicException( 'Should not be called, use getInstance' );
}

/**
* @see ValueParserTestBase::getInstance
*
Expand Down
7 changes: 0 additions & 7 deletions tests/ValueParsers/PhpDateTimeParserTest.php
Expand Up @@ -23,13 +23,6 @@
*/
class PhpDateTimeParserTest extends StringValueParserTest {

/**
* @deprecated since DataValues Common 0.3, just use getInstance.
*/
protected function getParserClass() {
throw new \LogicException( 'Should not be called, use getInstance' );
}

/**
* @see ValueParserTestBase::getInstance
*
Expand Down
7 changes: 0 additions & 7 deletions tests/ValueParsers/YearMonthDayTimeParserTest.php
Expand Up @@ -21,13 +21,6 @@
*/
class YearMonthDayTimeParserTest extends StringValueParserTest {

/**
* @deprecated since DataValues Common 0.3, just use getInstance.
*/
protected function getParserClass() {
throw new \LogicException( 'Should not be called, use getInstance' );
}

/**
* @see ValueParserTestBase::getInstance
*
Expand Down
7 changes: 0 additions & 7 deletions tests/ValueParsers/YearMonthTimeParserTest.php
Expand Up @@ -20,13 +20,6 @@
*/
class YearMonthTimeParserTest extends StringValueParserTest {

/**
* @deprecated since DataValues Common 0.3, just use getInstance.
*/
protected function getParserClass() {
throw new \LogicException( 'Should not be called, use getInstance' );
}

/**
* @see ValueParserTestBase::getInstance
*
Expand Down
7 changes: 0 additions & 7 deletions tests/ValueParsers/YearTimeParserTest.php
Expand Up @@ -21,13 +21,6 @@
*/
class YearTimeParserTest extends StringValueParserTest {

/**
* @deprecated since DataValues Common 0.3, just use getInstance.
*/
protected function getParserClass() {
throw new \LogicException( 'Should not be called, use getInstance' );
}

/**
* @see ValueParserTestBase::getInstance
*
Expand Down

0 comments on commit 31dd3fa

Please sign in to comment.