assertSame('first-val', $config->get('first')); $this->assertSame('nested-val', $config->get('nested.path')); $this->assertNull($config->get('nope')); $this->assertNull($config->get('nope')); $this->assertSame('default', $config->get('nested.nope', 'default')); } public function testHas(): void { Configure::write('first', 'first-val'); Configure::write('nested.path', 'nested-val'); Configure::write('nullval', null); $config = new ServiceConfig(); $this->assertFalse($config->has('nope')); $this->assertTrue($config->has('first')); $this->assertTrue($config->has('nested.path')); $this->assertFalse($config->has('nullval')); } }