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

Commit 8c45bed

Browse files
committed
Conditionally exclude new test
... when testing against zend-servicemanager v3.
1 parent 50ccd44 commit 8c45bed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/HelperPluginManagerTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ public function testIfHelperIsTranslatorAwareAndBothMvcTranslatorAndTranslatorAr
181181
*/
182182
public function testInjectTranslatorWillReturnEarlyIfThePluginManagerDoesNotHaveAParentContainer()
183183
{
184+
if (method_exists($this->helpers, 'configure')) {
185+
$this->markTestSkipped(
186+
'Skip test when testing against zend-servicemanager v3, as that implementation '
187+
. 'guarantees a parent container in plugin managers'
188+
);
189+
}
184190
$helpers = new HelperPluginManager();
185191
$helper = new HeadTitle();
186192
$this->assertNull($helpers->injectTranslator($helper, $helpers));

0 commit comments

Comments
 (0)