Skip to content

Commit

Permalink
Replaced deprecated DI\ContainerInterface to Interop\Container\Contai…
Browse files Browse the repository at this point in the history
…nerInterface

Added phpunit.xml
Fixed unit tests
  • Loading branch information
Fedott committed May 12, 2015
1 parent 6eb2822 commit aab3a63
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -25,6 +25,7 @@ how the ZF quickstart is ;)

## Change log

* 2.0.1 Replaced deprecated DI\ContainerInterface to Interop\Container\ContainerInterface
* 2.0.0 Requires PHP-DI >= 4.0.0
* 1.1.0 Requires PHP-DI >= 3.3
* 1.0.1 Bugfix
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Expand Up @@ -12,5 +12,8 @@
"require": {
"mnapoli/php-di": "~4.0",
"zendframework/zendframework1": "1.12.*"
},
"require-dev": {
"phpunit/phpunit": "^3.7"
}
}
2 changes: 1 addition & 1 deletion src/DI/Bridge/ZendFramework1/Dispatcher.php
Expand Up @@ -9,7 +9,7 @@

namespace DI\Bridge\ZendFramework1;

use DI\ContainerInterface;
use Interop\Container\ContainerInterface;
use Exception;
use Zend_Controller_Action;
use Zend_Controller_Action_Interface;
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitTests/DI/ZendFramework1/DispatcherTest.php
Expand Up @@ -19,7 +19,7 @@ class DispatcherTest extends \PHPUnit_Framework_TestCase
{
public function testSetGetContainer()
{
$container = new Container();
$container = ContainerBuilder::buildDevContainer();

$dispatcher = new Dispatcher();
$dispatcher->setContainer($container);
Expand Down
5 changes: 5 additions & 0 deletions tests/phpunit.xml
@@ -0,0 +1,5 @@
<phpunit bootstrap="bootstrap.php" colors="true" backupGlobals="false">
<testsuite name="Tests">
<directory>./UnitTests/</directory>
</testsuite>
</phpunit>

0 comments on commit aab3a63

Please sign in to comment.