cakephp2-php8/cake/tests/cases/libs/config/ini_file.test.php

27 lines
450 B
PHP
Raw Normal View History

<?php
App::import('Core', 'config/IniFile');
class IniFileTest extends CakeTestCase {
var $file;
/**
* setup
*
* @return void
*/
function setup() {
parent::setup();
$this->file = TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'config'. DS . 'acl.ini.php';
}
/**
* test constrction
*
* @return void
*/
function testConstruct() {
$config = new IniFile($this->file);
$this->assertTrue(isset($config->admin));
}
}