diff --git a/README.md b/README.md index cbb40f9..97d60ac 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/composer.json b/composer.json index 1ba7798..7143314 100644 --- a/composer.json +++ b/composer.json @@ -12,5 +12,8 @@ "require": { "mnapoli/php-di": "~4.0", "zendframework/zendframework1": "1.12.*" + }, + "require-dev": { + "phpunit/phpunit": "^3.7" } } diff --git a/src/DI/Bridge/ZendFramework1/Dispatcher.php b/src/DI/Bridge/ZendFramework1/Dispatcher.php index dfe84ef..342e442 100644 --- a/src/DI/Bridge/ZendFramework1/Dispatcher.php +++ b/src/DI/Bridge/ZendFramework1/Dispatcher.php @@ -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; diff --git a/tests/UnitTests/DI/ZendFramework1/DispatcherTest.php b/tests/UnitTests/DI/ZendFramework1/DispatcherTest.php index f6f581e..9160245 100644 --- a/tests/UnitTests/DI/ZendFramework1/DispatcherTest.php +++ b/tests/UnitTests/DI/ZendFramework1/DispatcherTest.php @@ -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); diff --git a/tests/phpunit.xml b/tests/phpunit.xml new file mode 100644 index 0000000..acefb0b --- /dev/null +++ b/tests/phpunit.xml @@ -0,0 +1,5 @@ + + + ./UnitTests/ + +