/** * */ function test_with_immutable() { $config = new Config(new Immutable(['baz' => 'bat'])); $new = $config->with('foo', 'bar'); $this->assertNotEquals($new, $config); $this->assertEquals(null, $config->get('foo')); $this->assertEquals('bar', $new->get('foo')); $this->assertEquals('bat', $new->get('baz')); }