diff --git a/test/Helper/HeadTitleTest.php b/test/Helper/HeadTitleTest.php index 18e6440d..e61977e6 100644 --- a/test/Helper/HeadTitleTest.php +++ b/test/Helper/HeadTitleTest.php @@ -164,6 +164,10 @@ public function testZF3577() public function testCanTranslateTitle() { + if (!extension_loaded('intl')) { + $this->markTestSkipped('ext/intl not enabled'); + } + $loader = new TestAsset\ArrayTranslator(); $loader->translations = array( 'Message_1' => 'Message 1 (en)', diff --git a/test/Helper/Navigation/BreadcrumbsTest.php b/test/Helper/Navigation/BreadcrumbsTest.php index 9981419a..7830b66f 100644 --- a/test/Helper/Navigation/BreadcrumbsTest.php +++ b/test/Helper/Navigation/BreadcrumbsTest.php @@ -161,6 +161,10 @@ public function testUseAclResourceFromPages() public function testTranslationUsingZendTranslate() { + if (!extension_loaded('intl')) { + $this->markTestSkipped('ext/intl not enabled'); + } + $this->_helper->setTranslator($this->_getTranslator()); $expected = $this->_getExpected('bc/translated.html'); @@ -169,6 +173,10 @@ public function testTranslationUsingZendTranslate() public function testTranslationUsingZendTranslateAdapter() { + if (!extension_loaded('intl')) { + $this->markTestSkipped('ext/intl not enabled'); + } + $translator = $this->_getTranslator(); $this->_helper->setTranslator($translator); diff --git a/test/Helper/Navigation/MenuTest.php b/test/Helper/Navigation/MenuTest.php index 366e7c80..935e7ca1 100644 --- a/test/Helper/Navigation/MenuTest.php +++ b/test/Helper/Navigation/MenuTest.php @@ -208,6 +208,10 @@ public function testOptionEscapeLabelsAsFalse() public function testTranslationUsingZendTranslate() { + if (!extension_loaded('intl')) { + $this->markTestSkipped('ext/intl not enabled'); + } + $translator = $this->_getTranslator(); $this->_helper->setTranslator($translator); @@ -217,6 +221,10 @@ public function testTranslationUsingZendTranslate() public function testTranslationUsingZendTranslateAdapter() { + if (!extension_loaded('intl')) { + $this->markTestSkipped('ext/intl not enabled'); + } + $translator = $this->_getTranslator(); $this->_helper->setTranslator($translator); diff --git a/test/Helper/Navigation/NavigationTest.php b/test/Helper/Navigation/NavigationTest.php index c9257643..1ff2be51 100644 --- a/test/Helper/Navigation/NavigationTest.php +++ b/test/Helper/Navigation/NavigationTest.php @@ -183,6 +183,10 @@ public function testDisablingAclInjection() public function testInjectingTranslator() { + if (!extension_loaded('intl')) { + $this->markTestSkipped('ext/intl not enabled'); + } + $this->_helper->setTranslator($this->_getTranslator()); $expected = $this->_getExpected('menu/translated.html');