Skip to content

Commit

Permalink
Re-enable i18n tests on Travis
Browse files Browse the repository at this point in the history
Now that zend-i18n has a stable, forwards-compatible version, we can re-enable
tests against it on Travis.
  • Loading branch information
weierophinney committed Mar 1, 2016
1 parent 911abe3 commit 250e0e3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 22 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ 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-i18n" ; fi

install:
- travis_retry composer install --no-interaction --ignore-platform-reqs
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"require-dev": {
"zendframework/zend-filter": "^2.6",
"zendframework/zend-i18n": "^2.5",
"zendframework/zend-i18n": "^2.6",
"zendframework/zend-json": "^2.6.1",
"zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
"fabpot/php-cs-fixer": "1.7.*",
Expand Down
20 changes: 0 additions & 20 deletions test/ProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,6 @@ public function testPHPConstants()

public function testTranslator()
{
if (! class_exists(ExtensionNotLoadedException::class)) {
$this->markTestSkipped(sprintf('%s skipped to allow testing against zend-servicemanager v3', __FUNCTION__));
}

if (!extension_loaded('intl')) {
$this->markTestSkipped('ext/intl not enabled');
}
Expand All @@ -430,10 +426,6 @@ public function testTranslator()

public function testTranslatorWithoutIntl()
{
if (! class_exists(ExtensionNotLoadedException::class)) {
$this->markTestSkipped(sprintf('%s skipped to allow testing against zend-servicemanager v3', __FUNCTION__));
}

if (extension_loaded('intl')) {
$this->markTestSkipped('ext/intl enabled');
}
Expand All @@ -453,10 +445,6 @@ public function testTranslatorWithoutIntl()

public function testTranslatorReadOnly()
{
if (! class_exists(ExtensionNotLoadedException::class)) {
$this->markTestSkipped(sprintf('%s skipped to allow testing against zend-servicemanager v3', __FUNCTION__));
}

$config = new Config($this->translatorData, false);
$translator = new Translator();
$processor = new TranslatorProcessor($translator);
Expand All @@ -470,10 +458,6 @@ public function testTranslatorReadOnly()

public function testTranslatorSingleValue()
{
if (! class_exists(ExtensionNotLoadedException::class)) {
$this->markTestSkipped(sprintf('%s skipped to allow testing against zend-servicemanager v3', __FUNCTION__));
}

if (!extension_loaded('intl')) {
$this->markTestSkipped('ext/intl not enabled');
}
Expand All @@ -487,10 +471,6 @@ public function testTranslatorSingleValue()

public function testTranslatorSingleValueWithoutIntl()
{
if (! class_exists(ExtensionNotLoadedException::class)) {
$this->markTestSkipped(sprintf('%s skipped to allow testing against zend-servicemanager v3', __FUNCTION__));
}

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

0 comments on commit 250e0e3

Please sign in to comment.