/** * @group ZF-6459 */ public function testCallingSetOptionsMultipleTimesShouldMergeOptionsRecursively() { $options = array('deep' => array('foo' => 'bar', 'bar' => 'baz')); $bootstrap = new TestAsset\ZfAppBootstrap($this->application); $bootstrap->setOptions($options); $options2 = array('deep' => array('bar' => 'bat', 'baz' => 'foo')); $bootstrap->setOptions($options2); $expected = $bootstrap->mergeOptions($options, $options2); $test = $bootstrap->getOptions(); $this->assertEquals($expected, $test); }