<commit_before><?php
/*
 * For testing logiks core helper : pathfuncs
 * 
 * @author	<NAME> <<EMAIL>>
 * @date 	2015-11-16
 */
class test_helpers_pathfuncs extends LogiksTestCase {
	
	public function setUp(){
		parent::setUp();
		//define("APPROOT",__DIR__."/apps/default/");
		loadHelpers("pathfuncs");
	}
	
	public function test_getWebPath(){
		$result=getWebPath(__FILE__);
		$expected = SiteLocation.str_replace(ROOT, "", dirname(__FILE__)."/".basename(__FILE__));
		$this->assertEquals($expected,$result);
	}
	
	public function test_getRootPath(){
		$result=getRootPath(__FILE__);
		$this->assertEquals($result,__FILE__);
	}
	
	/*
	 * Function not working thus masked
	 */
	public function test_getStoragePath(){
		$result=getStoragePath();
		
		$expected = '/srcspace/wwwLogiks/devlogiks/apps/default/userdata/';
		$this->assertEquals($expected,$result);
	}
	
	/*
	 * Function not working thus masked
	 */
	public function test_getConfigPath(){<commit_msg>Updated the paths testcase<commit_after><?php
/*
 * For testing logiks core helper : pathfuncs
 * 
 * @author	<NAME> <<EMAIL>>
 * @date 	2015-11-16
 */
class test_helpers_pathfuncs extends LogiksTestCase {
	
	public function setUp(){
		parent::setUp();
		define("APPROOT",__DIR__."/apps/default/");
		loadHelpers("pathfuncs");
	}
	
	public function test_getWebPath(){
		$result=getWebPath(__FILE__);
		$expected = SiteLocation.str_replace(ROOT, "", dirname(__FILE__)."/".basename(__FILE__));
		$this->assertEquals($expected,$result);
	}
	
	public function test_getRootPath(){
		$result=getRootPath(__FILE__);
		$this->assertEquals($result,__FILE__);
	}
	
	public function test_getStoragePath(){
		$result=getStoragePath();
		
		$expected = '/srcspace/wwwLogiks/devlogiks/apps/default/userdata/';
		$this->assertEquals($expected,$result);
	}
	
	public function test_getConfigPath(){
{'fraction_non_alphanumeric': 0.1562669560499186, 'fraction_numerical': 0.008681497558328812, 'mean_word_length': 5.1466666666666665, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '399561', 'n_tokens_mistral': 658, 'n_tokens_neox': 601, 'n_words': 102}