mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-01 01:26:19 +00:00
9d3b3a72ce
Adding a test case.
27 lines
No EOL
450 B
PHP
27 lines
No EOL
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));
|
|
}
|
|
} |