public function testYAMLConfigSetItemObjectValueAndObjectHasNewValue() { $test_data = $this->config->getItem('test'); $test_data->set('users.2', array('username' => 'Jane')); $test_data->testing = "hello"; $test_data->db = ['host' => 'localhost', 'user' => 'root', 'pass' => 'root', 'name' => 'dbname']; $this->assertEquals('Jane', $test_data->get('users.2.username')); $this->assertEquals('hello', $test_data->get('testing')); $this->assertEquals('localhost', $test_data->db['host']); }