Your IP : 18.225.209.237


Current Path : /home/bitrix/ext_www/home-comfort.in.ua/local/modules/webprofy.offersgroup/tests/
Upload File :
Current File : /home/bitrix/ext_www/home-comfort.in.ua/local/modules/webprofy.offersgroup/tests/autoload.php

<?
define ('NOT_CHECK_PERMISSIONS', true);
define ('NO_AGENT_CHECK', true);

if (!$_SERVER['DOCUMENT_ROOT']) {
	$_SERVER['DOCUMENT_ROOT'] = __DIR__.'/../..';
}
require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php');
//require_once(__DIR__.'/../../bitrix/php_interface/dbconn.php');
require_once(__DIR__.'/include/constants.php');
require_once(__DIR__.'/include/functions.php');
//echo dirname(__FILE__) . '/../../bitrix/php_interface/dbconn.php';
//die('~~~');
spl_autoload_register(function($class){
	$path = __DIR__ . '/classes/'.strtr($class, array('\\' => '/')).'.php';
	if(!file_exists($path)){
		return;
	}
	require_once($path);
});

spl_autoload_register(function($class){
	$path = __DIR__ . '/tests/'.strtr($class, array('\\' => '/')).'.php';
	if(!file_exists($path)){
		return;
	}
	require_once($path);
});