mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
27 lines
450 B
PHP
27 lines
450 B
PHP
|
<?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));
|
||
|
}
|
||
|
}
|