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

Commit

Permalink
Updated test to use CommonPluginManagerTrait from Zend\ServiceManager…
Browse files Browse the repository at this point in the history
…\Test
  • Loading branch information
kynx committed Feb 6, 2016
1 parent 4c8a72d commit 72e4076
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
},
"autoload-dev": {
"psr-4": {
"ZendTest\\Text\\": "test/",
"ZendTest\\ServiceManager\\": "vendor/zendframework/zend-servicemanager/test"
"ZendTest\\Text\\": "test/"
}
},
"require-dev": {
Expand Down
8 changes: 7 additions & 1 deletion test/Table/DecoratorManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@

use PHPUnit_Framework_TestCase as TestCase;
use Zend\ServiceManager\ServiceManager;
use Zend\ServiceManager\Test\CommonPluginManagerTrait;
use Zend\Text\Table\Decorator\DecoratorInterface;
use Zend\Text\Table\DecoratorManager;
use Zend\Text\Table\Exception\InvalidDecoratorException;
use ZendTest\ServiceManager\CommonPluginManagerTrait;

class DecoratorManagerTest extends TestCase
{
Expand All @@ -28,4 +29,9 @@ protected function getV2InvalidPluginException()
{
return InvalidDecoratorException::class;
}

protected function getInstanceOf()
{
return DecoratorInterface::class;
}
}

0 comments on commit 72e4076

Please sign in to comment.