// +---------------------------------------------------------------------- /** * Xml配置测试 * * @author 7IN0SAN9 */ namespace think\config\driver; use think\config; class xmlTest extends \PHPUnit_Framework_TestCase { public function testParse() { Config::parse('1', 'xml'); $this->assertEquals(1, Config::get('xmlstring')); Config::reset(); Config::parse(__DIR__ . '/fixtures/config.xml'); $this->assertTrue(Config::has('xmlfile.istrue')); $this->assertEquals(1, Config::get('xmlfile.istrue')); Config::reset(); } }