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