function test_get_rules_from_ini() { $cache_manager = new full_page_cache_manager(); register_testing_ini( 'full_page_cache.ini', ' [rule1] path_regex = /root/test1 optional[] = test1 optional[] = test2 [rule2] path_regex = /root/test2 groups[] = members groups[] = visitors [not_valid_rule] path_regex = /root/test3 ' ); $this->assertEqual($cache_manager->get_rules(), array( array('path_regex' => '/root/test1', 'optional' => array('test1', 'test2')), array('path_regex' => '/root/test2', 'groups' => array('members', 'visitors')) ) ); clear_testing_ini(); }