/** * Retrieve options * * @Revs(10000) * @Iterations(10) */ public function benchOptions() { $this->factory->options($this->config); }
/** * Tests if options() works default options and default options not override provied options * * @covers \Interop\Config\ConfigurationTrait::options */ public function testOptionsThatDefaultOptionsNotOverrideProvidedOptions() { $stub = new ConnectionDefaultOptionsConfiguration(); $testConfig = $this->getTestConfig(); $options = $stub->options($testConfig); self::assertArrayHasKey('params', $options); self::assertSame($options['params']['host'], $testConfig['doctrine']['connection']['orm_default']['params']['host']); self::assertSame($options['params']['port'], $testConfig['doctrine']['connection']['orm_default']['params']['port']); self::assertSame($options['params']['user'], $testConfig['doctrine']['connection']['orm_default']['params']['user']); }