This repository has been archived by the owner on Feb 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #248 from webimpress/test/shared
Added more test for shared services (aliases, factories, invokables)
- Loading branch information
Showing
3 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
/** | ||
* @see https://github.com/zendframework/zend-servicemanager for the canonical source repository | ||
* @copyright Copyright (c) 2018 Zend Technologies USA Inc. (https://www.zend.com) | ||
* @license https://github.com/zendframework/zend-servicemanager/blob/master/LICENSE.md New BSD License | ||
*/ | ||
|
||
namespace ZendTest\ServiceManager; | ||
|
||
use Psr\Container\ContainerInterface; | ||
use Zend\ContainerConfigTest\AbstractExpressiveContainerConfigTest; | ||
use Zend\ContainerConfigTest\SharedTestTrait; | ||
use Zend\ServiceManager\ServiceManager; | ||
|
||
class ContainerTest extends AbstractExpressiveContainerConfigTest | ||
{ | ||
use SharedTestTrait; | ||
|
||
protected function createContainer(array $config) : ContainerInterface | ||
{ | ||
return new ServiceManager($config); | ||
} | ||
} |