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

Commit

Permalink
Conditionally exclude new test
Browse files Browse the repository at this point in the history
... when testing against zend-servicemanager v3.
  • Loading branch information
weierophinney committed Feb 18, 2016
1 parent 50ccd44 commit 8c45bed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/HelperPluginManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ public function testIfHelperIsTranslatorAwareAndBothMvcTranslatorAndTranslatorAr
*/
public function testInjectTranslatorWillReturnEarlyIfThePluginManagerDoesNotHaveAParentContainer()
{
if (method_exists($this->helpers, 'configure')) {
$this->markTestSkipped(
'Skip test when testing against zend-servicemanager v3, as that implementation '
. 'guarantees a parent container in plugin managers'
);
}
$helpers = new HelperPluginManager();
$helper = new HeadTitle();
$this->assertNull($helpers->injectTranslator($helper, $helpers));
Expand Down

0 comments on commit 8c45bed

Please sign in to comment.