From 4ed737ce54d31a40520c4dde98867298004d8091 Mon Sep 17 00:00:00 2001 From: Ralph Schindler Date: Mon, 19 Mar 2012 16:03:38 -0500 Subject: [PATCH] Zend\Di Shared Support: * Fixed other unit tests to expect the new key in configuration values --- test/ConfigurationTest.php | 4 ++-- test/InstanceManagerTest.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/ConfigurationTest.php b/test/ConfigurationTest.php index 74f96c03..ff10f5bd 100644 --- a/test/ConfigurationTest.php +++ b/test/ConfigurationTest.php @@ -34,11 +34,11 @@ public function testConfigurationCanConfigureInstanceManagerWithIniFile() $this->assertContains('my-dbAdapter', $im->getTypePreferences('my-mapper')); $this->assertTrue($im->hasConfiguration('My\DbAdapter')); - $expected = array('parameters' => array('username' => 'readonly', 'password' => 'mypassword'), 'injections' => array()); + $expected = array('parameters' => array('username' => 'readonly', 'password' => 'mypassword'), 'injections' => array(), 'shared' => array()); $this->assertEquals($expected, $im->getConfiguration('My\DbAdapter')); $this->assertTrue($im->hasConfiguration('my-dbAdapter')); - $expected = array('parameters' => array('username' => 'readwrite'), 'injections' => array()); + $expected = array('parameters' => array('username' => 'readwrite'), 'injections' => array(), 'shared' => array()); $this->assertEquals($expected, $im->getConfiguration('my-dbAdapter')); } diff --git a/test/InstanceManagerTest.php b/test/InstanceManagerTest.php index 8a0092dc..03f7719e 100644 --- a/test/InstanceManagerTest.php +++ b/test/InstanceManagerTest.php @@ -71,6 +71,7 @@ public function testInstanceManagerResolvesRecursiveAliasesForConfiguration() $im->setConfiguration('bar-alias', $config); $config['injections'] = array(); + $config['shared'] = array(); $this->assertEquals($config, $im->getConfiguration('foo-alias')); }