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

Commit

Permalink
Merge pull request #248 from webimpress/test/shared
Browse files Browse the repository at this point in the history
Added more test for shared services (aliases, factories, invokables)
  • Loading branch information
Ocramius authored Apr 16, 2018
2 parents f9b2a18 + b8b1525 commit f98a895
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"ocramius/proxy-manager": "^2.1.1",
"phpbench/phpbench": "^0.13.0",
"phpunit/phpunit": "^6.4.4",
"zendframework/zend-coding-standard": "~1.0.0"
"zendframework/zend-coding-standard": "~1.0.0",
"zendframework/zend-container-config-test": "^0.2.1"
},
"provide": {
"psr/container-implementation": "^1.0"
Expand Down
57 changes: 56 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions test/ContainerTest.php
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);
}
}

0 comments on commit f98a895

Please sign in to comment.