PopTest\ConfigTest::testConfigMergeException PHP Method

testConfigMergeException() public method

    public function testConfigMergeException()
    {
        $this->setExpectedException('Exception');
        $cfg1 = array('db' => array('name' => 'testdb', 'host' => 'localhost', 'user' => array('username' => 'testuser', 'password' => '12test34', 'role' => 'editor')), 'nav' => array('some' => 'nav'), 'module' => 'TestModule', 'oldvalue' => 123456);
        $cfg2 = 'bad value';
        $config1 = new Config($cfg1);
        $config1->merge($cfg2);
    }