From 750267a82104ccfe4f096b8482372d3e1789f519 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Wed, 23 Oct 2013 19:32:43 +0200 Subject: [PATCH] fix tests when intl is not installed --- tests/unit/framework/i18n/I18NTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unit/framework/i18n/I18NTest.php b/tests/unit/framework/i18n/I18NTest.php index a6d8d9f..924176f 100644 --- a/tests/unit/framework/i18n/I18NTest.php +++ b/tests/unit/framework/i18n/I18NTest.php @@ -51,7 +51,13 @@ class I18NTest extends TestCase $params = ['n' => 42]; $this->assertEquals('His speed is about 42 km/h.', $this->i18n->translate('test', $msg, $params, 'en_US')); $this->assertEquals('Seine Geschwindigkeit betrÃĪgt 42 km/h.', $this->i18n->translate('test', $msg, $params, 'de_DE')); + } + public function testTranslateParams2() + { + if (!extension_loaded("intl")) { + $this->markTestSkipped("intl not installed. Skipping."); + } $msg = 'His name is {name} and his speed is about {n, number} km/h.'; $params = [ 'n' => 42,