Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/test-with-cache-and-validator'
Browse files Browse the repository at this point in the history
Close #35
  • Loading branch information
weierophinney committed Feb 17, 2016
2 parents 9062fee + c0c5abf commit 0ae8ffa
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 89 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -63,7 +63,7 @@ before_install:
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
- if [[ $SERVICE_MANAGER_VERSION != '' ]]; then composer require --dev --no-update "zendframework/zend-servicemanager:$SERVICE_MANAGER_VERSION" ; fi
- if [[ $SERVICE_MANAGER_VERSION == '' ]]; then composer require --dev --no-update "zendframework/zend-servicemanager:^3.0.3" ; fi
- if [[ $SERVICE_MANAGER_VERSION == '' ]]; then composer remove --dev --no-update zendframework/zend-cache zendframework/zend-validator zendframework/zend-view ; fi
- if [[ $SERVICE_MANAGER_VERSION == '' ]]; then composer remove --dev --no-update zendframework/zend-view ; fi
- if [[ $EVENT_MANAGER_VERSION != '' ]]; then composer require --dev --no-update "zendframework/zend-eventmanager:$EVENT_MANAGER_VERSION" ; fi
- if [[ $EVENT_MANAGER_VERSION == '' ]]; then composer require --dev --no-update "zendframework/zend-eventmanager:^3.0" ; fi

Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Expand Up @@ -18,7 +18,10 @@ All notable changes to this project will be documented in this file, in reverse

### Fixed

- Nothing.
- [#35](https://github.com/zendframework/zend-i18n/pull/35) updates the
dependencies for zend-validator and zend-cache to use versions that are
forwards-compatible with zend-servicemanager v3, and re-enables their tests
during continuous integration.

## 2.6.0 - 2016-02-10

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -18,13 +18,13 @@
"zendframework/zend-stdlib": "^2.7 || ^3.0"
},
"require-dev": {
"zendframework/zend-cache": "^2.5",
"zendframework/zend-cache": "^2.6.1",
"zendframework/zend-config": "^2.6",
"zendframework/zend-eventmanager": "^2.6.2 || ^3.0",
"zendframework/zend-filter": "^2.6.1",
"zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
"zendframework/zend-validator": "^2.5",
"zendframework/zend-view": "^2.5",
"zendframework/zend-validator": "^2.6",
"zendframework/zend-view": "^2.5.3",
"fabpot/php-cs-fixer": "1.7.*",
"phpunit/PHPUnit": "~4.0"
},
Expand Down
21 changes: 0 additions & 21 deletions test/Translator/TranslatorTest.php
Expand Up @@ -133,13 +133,6 @@ public function testTranslationFromDifferentSourceTypes()

public function testFactoryCreatesTranslatorWithCache()
{
if (! interface_exists('Zend\Cache\Storage\StorageInterface')) {
$this->markTestSkipped(
'Skipping tests that utilize zend-cache until that component is '
. 'forwards-compatible with zend-stdlib and zend-servicemanager v3'
);
}

$translator = Translator::factory([
'locale' => 'de_DE',
'patterns' => [
Expand Down Expand Up @@ -188,13 +181,6 @@ public function testTranslate()

public function testTranslationsLoadedFromCache()
{
if (! interface_exists('Zend\Cache\Storage\StorageInterface')) {
$this->markTestSkipped(
'Skipping tests that utilize zend-cache until that component is '
. 'forwards-compatible with zend-stdlib and zend-servicemanager v3'
);
}

$cache = \Zend\Cache\StorageFactory::factory(['adapter' => 'memory']);
$this->translator->setCache($cache);

Expand All @@ -208,13 +194,6 @@ public function testTranslationsLoadedFromCache()

public function testTranslationsAreStoredInCache()
{
if (! interface_exists('Zend\Cache\Storage\StorageInterface')) {
$this->markTestSkipped(
'Skipping tests that utilize zend-cache until that component is '
. 'forwards-compatible with zend-stdlib and zend-servicemanager v3'
);
}

$cache = \Zend\Cache\StorageFactory::factory(['adapter' => 'memory']);
$this->translator->setCache($cache);

Expand Down
7 changes: 0 additions & 7 deletions test/Validator/AlnumTest.php
Expand Up @@ -28,13 +28,6 @@ class AlnumTest extends \PHPUnit_Framework_TestCase
*/
public function setUp()
{
if (! interface_exists('Zend\Validator\ValidatorInterface')) {
$this->markTestSkipped(
'Skipping tests that utilize zend-validator until that component is '
. 'forwards-compatible with zend-stdlib and zend-servicemanager v3'
);
}

if (!extension_loaded('intl')) {
$this->markTestSkipped('ext/intl not enabled');
}
Expand Down
7 changes: 0 additions & 7 deletions test/Validator/AlphaTest.php
Expand Up @@ -23,13 +23,6 @@ class AlphaTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
if (! interface_exists('Zend\Validator\ValidatorInterface')) {
$this->markTestSkipped(
'Skipping tests that utilize zend-validator until that component is '
. 'forwards-compatible with zend-stdlib and zend-servicemanager v3'
);
}

if (!extension_loaded('intl')) {
$this->markTestSkipped('ext/intl not enabled');
}
Expand Down
7 changes: 0 additions & 7 deletions test/Validator/DateTimeTest.php
Expand Up @@ -35,13 +35,6 @@ class DateTimeTest extends PHPUnit_Framework_TestCase

public function setUp()
{
if (! interface_exists('Zend\Validator\ValidatorInterface')) {
$this->markTestSkipped(
'Skipping tests that utilize zend-validator until that component is '
. 'forwards-compatible with zend-stdlib and zend-servicemanager v3'
);
}

if (!extension_loaded('intl')) {
$this->markTestSkipped('ext/intl not enabled');
}
Expand Down
7 changes: 0 additions & 7 deletions test/Validator/FloatTest.php
Expand Up @@ -29,13 +29,6 @@ class FloatTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
if (! interface_exists('Zend\Validator\ValidatorInterface')) {
$this->markTestSkipped(
'Skipping tests that utilize zend-validator until that component is '
. 'forwards-compatible with zend-stdlib and zend-servicemanager v3'
);
}

if (version_compare(PHP_VERSION, '7.0', '>=')) {
$this->markTestSkipped('Cannot test Float validator under PHP 7; reserved keyword');
}
Expand Down
7 changes: 0 additions & 7 deletions test/Validator/IntTest.php
Expand Up @@ -29,13 +29,6 @@ class IntTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
if (! interface_exists('Zend\Validator\ValidatorInterface')) {
$this->markTestSkipped(
'Skipping tests that utilize zend-validator until that component is '
. 'forwards-compatible with zend-stdlib and zend-servicemanager v3'
);
}

if (version_compare(PHP_VERSION, '7.0', '>=')) {
$this->markTestSkipped('Cannot test Int validator under PHP 7; reserved keyword');
}
Expand Down
7 changes: 0 additions & 7 deletions test/Validator/IsFloatTest.php
Expand Up @@ -30,13 +30,6 @@ class IsFloatTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
if (! interface_exists('Zend\Validator\ValidatorInterface')) {
$this->markTestSkipped(
'Skipping tests that utilize zend-validator until that component is '
. 'forwards-compatible with zend-stdlib and zend-servicemanager v3'
);
}

if (!extension_loaded('intl')) {
$this->markTestSkipped('ext/intl not enabled');
}
Expand Down
7 changes: 0 additions & 7 deletions test/Validator/IsIntTest.php
Expand Up @@ -29,13 +29,6 @@ class IsIntTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
if (! interface_exists('Zend\Validator\ValidatorInterface')) {
$this->markTestSkipped(
'Skipping tests that utilize zend-validator until that component is '
. 'forwards-compatible with zend-stdlib and zend-servicemanager v3'
);
}

if (!extension_loaded('intl')) {
$this->markTestSkipped('ext/intl not enabled');
}
Expand Down
7 changes: 0 additions & 7 deletions test/Validator/PhoneNumberTest.php
Expand Up @@ -3038,13 +3038,6 @@ class PhoneNumberTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
if (! interface_exists('Zend\Validator\ValidatorInterface')) {
$this->markTestSkipped(
'Skipping tests that utilize zend-validator until that component is '
. 'forwards-compatible with zend-stdlib and zend-servicemanager v3'
);
}

$this->validator = new PhoneNumber();
}

Expand Down
7 changes: 0 additions & 7 deletions test/Validator/PostCodeTest.php
Expand Up @@ -28,13 +28,6 @@ class PostCodeTest extends \PHPUnit_Framework_TestCase
*/
public function setUp()
{
if (! interface_exists('Zend\Validator\ValidatorInterface')) {
$this->markTestSkipped(
'Skipping tests that utilize zend-validator until that component is '
. 'forwards-compatible with zend-stdlib and zend-servicemanager v3'
);
}

if (!extension_loaded('intl')) {
$this->markTestSkipped('ext/intl not enabled');
}
Expand Down

0 comments on commit 0ae8ffa

Please sign in to comment.