public function test_remove_with_reference() { $config = new Config(); $config->set('foo', '{bar.baz}'); $config->set('bar', ['baz' => '{yolo.swag}']); $config->set('yolo.swag', ['key' => 'value']); $config->remove('foo.key'); $this->assertFalse($config->has('foo.key')); $this->assertFalse($config->has('bar.baz.key')); $this->assertFalse($config->has('yolo.swag.key')); }