/** */ public function testGetValue() { $sugar_path = Util::getRelativePath(__DIR__ . '/yaml/../yaml/toto'); $relative_path = 'tests/Console/yaml/toto'; $conf = new Config(array(__DIR__ . '/yaml/../yaml/complete.yaml')); $conf->load(); $this->assertEquals($relative_path, $conf->get('sugarcrm.path')); $this->assertEquals('titi', $conf->get('sugarcrm.url')); $this->assertEquals(array('path' => $relative_path, 'url' => 'titi'), $conf->get('sugarcrm')); $this->assertTrue($conf->has()); $this->assertTrue($conf->has('sugarcrm')); $this->assertTrue($conf->has('sugarcrm.path')); $this->assertFalse($conf->has('foo')); $this->assertFalse($conf->has('sugarcrm.foo')); $this->assertFalse($conf->has('sugarcrm.path.foo')); }