From 9d3b3a72cefabc78ef9302ba98f5c285cfd1b87f Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 28 Nov 2010 12:54:32 -0500 Subject: [PATCH] Starting to extract Ini file parsing out of IniAcl as it breaks single responsibility, and ini file parsing should be generic enough to be reused. Adding a test case. --- cake/libs/config/ini_file.php | 37 +++++++++++++++++++ .../tests/cases/libs/config/ini_file.test.php | 27 ++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 cake/libs/config/ini_file.php create mode 100644 cake/tests/cases/libs/config/ini_file.test.php diff --git a/cake/libs/config/ini_file.php b/cake/libs/config/ini_file.php new file mode 100644 index 00000000000..cb5c8df73ed --- /dev/null +++ b/cake/libs/config/ini_file.php @@ -0,0 +1,37 @@ +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)); + } +} \ No newline at end of file