Commit cfcb4608 authored by Guill's avatar Guill Committed by Fabio Montefuscolo

Add composer test script

parent 7ede5079
Pipeline #51952298 failed with stages
in 28 minutes and 54 seconds
......@@ -12,7 +12,7 @@ if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
}
require_once 'lib/setup/twversion.class.php';
require_once __DIR__ . '/../lib/setup/twversion.class.php';
require_once 'Patch.php';
/**
......
......@@ -146,7 +146,7 @@ class AuthTokens
$query = '?' . http_build_query($parameters, '', '&');
$url .= $query;
}
include_once('tiki-sefurl.php');
include_once(__DIR__ . '/../../tiki-sefurl.php');
$url = filter_out_sefurl($url);
TikiLib::lib('access')->redirect($url);
die;
......@@ -270,7 +270,7 @@ class AuthTokens
unset($args['TOKEN']);
} else {
global $prefs, $sefurl_regex_out;
include_once 'tiki-sefurl.php';
include_once __DIR__ . '/../../tiki-sefurl.php';
if ($prefs['feature_sefurl'] === 'y' && ! empty($sefurl_regex_out)) {
global $base_url;
......
......@@ -75,7 +75,7 @@ class BlogLib extends TikiDb_Bridge
}
$result = Perms::filter(['type' => 'blog'], 'object', $result, ['object' => 'blogId'], $perm);
foreach ($result as $res) {
++$cant;
if ($maxRecords == - 1 || ($i >= $offset && $nb < $maxRecords)) {
......@@ -546,7 +546,7 @@ class BlogLib extends TikiDb_Bridge
$tikilib->object_post_save(['type' => 'blog', 'object' => $blogId, 'description' => $description, 'name' => $title, 'href' => "tiki-view_blog.php?blogId=$blogId"], [ 'content' => $heading ]);
}
require_once('lib/search/refresh-functions.php');
require_once(__DIR__ . '/../search/refresh-functions.php');
refresh_index('blogs', $blogId);
return $blogId;
......@@ -903,7 +903,7 @@ class BlogLib extends TikiDb_Bridge
$logslib->add_action('Posted', $blogId, 'blog', "blogId=$blogId&amp;postId=$id&amp;add=" . strlen($data) . "#postId$id", '', '', '', '', $contributions);
}
require_once('lib/search/refresh-functions.php');
require_once(__DIR__ . '/../search/refresh-functions.php');
refresh_index('blog_posts', $id);
$tikilib->object_post_save(['type' => 'blog post', 'object' => $id, 'description' => substr($data, 0, 200), 'name' => $title, 'href' => "tiki-view_blog_post.php?postId=$id"], ['content' => $data]);
......
......@@ -1027,7 +1027,7 @@ class Comments extends TikiLib
where 1 = 1 $where" . ($forumId ? 'AND a.`object`=?' : '')
. (($include_archived) ? '' : ' and (a.`archived` is null or a.`archived`=?)')
. " and a.`objectType` = 'forum'
and a.`parentId` = ? $time_cond
and a.`parentId` = ? $time_cond
group by a.`threadId`, a.`object`, a.`objectType`, a.`parentId`, a.`userName`, a.`commentDate`, a.`hits`, a.`type`, a.`points`, a.`votes`, a.`average`, a.`title`, a.`data`, a.`hash`, a.`user_ip`, a.`summary`, a.`smiley`, a.`message_id`, a.`in_reply_to`, a.`comment_rating`, a.`locked`, a.archived ";
if ($reply_state == 'none') {
......@@ -4092,7 +4092,7 @@ class Comments extends TikiLib
*/
private function update_index($type, $threadId, $parentId = null)
{
require_once('lib/search/refresh-functions.php');
require_once(__DIR__ . '/../search/refresh-functions.php');
global $prefs;
if ($type == 'forum') {
......
......@@ -5,13 +5,13 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
include_once 'lib/diff/Diff.php';
include_once 'lib/diff/difflib.php';
include_once 'lib/diff/Renderer.php';
include_once 'lib/diff/renderer_unified.php';
include_once 'SentenceAlignments.php';
include_once 'SentenceSegmentor.php';
include_once 'MockMTWrapper.php';
include_once __DIR__ . '/../../../diff/Diff.php';
include_once __DIR__ . '/../../..//diff/difflib.php';
include_once __DIR__ . '/../../..//diff/Renderer.php';
include_once __DIR__ . '/../../..//diff/renderer_unified.php';
include_once __DIR__ . '/SentenceAlignments.php';
include_once __DIR__ . '/SentenceSegmentor.php';
include_once __DIR__ . '/MockMTWrapper.php';
/*
......
......@@ -7,7 +7,7 @@
namespace Tiki\Notifications;
require_once 'lib/notifications/notificationemaillib.php';
require_once __DIR__ . '/../../notifications/notificationemaillib.php';
class Email
{
......
......@@ -5,7 +5,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once('lib/webmail/tikimaillib.php');
require_once(__DIR__ . '/../../webmail/tikimaillib.php');
/**
* Factory for reports classes
......
......@@ -27,7 +27,7 @@ class Reports_Send_EmailBuilder
public function emailBody($user_data, $report_preferences, $report_cache)
{
global $prefs;
include_once('lib/smarty_tiki/modifier.username.php');
include_once(__DIR__ . '/../../../smarty_tiki/modifier.username.php');
if (isset($report_cache[0])) {
$base_url = $report_cache[0]['data']['base_url'];
......@@ -133,17 +133,17 @@ class Reports_Send_EmailBuilder
$body .= $this->tikilib->get_short_datetime(strtotime($change['time'])) . ": ";
if (isset($change['data']['user'])) {
include_once('lib/smarty_tiki/modifier.username.php');
include_once(__DIR__ . '/../../../smarty_tiki/modifier.username.php');
$change['data']['user'] = smarty_modifier_username($change['data']['user']);
}
if (isset($change['data']['editUser'])) {
include_once('lib/smarty_tiki/modifier.username.php');
include_once(__DIR__ . '/../../../smarty_tiki/modifier.username.php');
$change['data']['editUser'] = smarty_modifier_username($change['data']['editUser']);
}
if (isset($change['user'])) {
include_once('lib/smarty_tiki/modifier.username.php');
include_once(__DIR__ . '/../../../smarty_tiki/modifier.username.php');
$change['user'] = smarty_modifier_username($change['user']);
}
......
......@@ -273,7 +273,7 @@ return false;";
$emailType = 'trackeritem';
}
if ($emailType) {
require_once('lib/notifications/notificationemaillib.php');
require_once(__DIR__ . '/../../../notifications/notificationemaillib.php');
sendCommentNotification($emailType, $objectId, $title, $data, $threadId, $anonymous_name);
}
......@@ -845,7 +845,7 @@ return false;";
// add some specific js to set up comment post form in a modal dialog
// so it can refresh the page after the post
TikiLib::lib('header')->add_jq_onready(/** @lang JavaScript */
'
'
$(".comment-post").parents("form").submit(ajaxSubmitEventHandler(function (data) {
$.closeModal();
location.href = location.href.replace(/#.*$/, "");
......
......@@ -58,7 +58,7 @@ class File
function __construct($params = [])
{
global $mimetypes;
include_once('lib/mime/mimetypes.php');
include_once(__DIR__ . '/../../../mime/mimetypes.php');
$this->setParam('filetype', $mimetypes["txt"]);
$this->setParam('name', tr("New File"));
......@@ -234,7 +234,7 @@ class File
function diffLatestWithArchive($archive = 0)
{
include_once("lib/diff/Diff.php");
include_once(__DIR__ . "/../../../diff/Diff.php");
$textDiff = new \Text_Diff(
self::id($this->getParam('fileId'))
......
......@@ -28,7 +28,7 @@ class FileDraft extends File
function __construct($params = [])
{
global $mimetypes;
include_once('lib/mime/mimetypes.php');
include_once(__DIR__ . '/../../../mime/mimetypes.php');
$this->setParam('filetype', $mimetypes["txt"]);
$this->setParam('filename', tr("New File"));
......
......@@ -11,8 +11,8 @@ if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
exit;
}
require_once("lib/diff/Diff.php");
require_once("lib/diff/Renderer.php");
require_once(__DIR__ . "/Diff.php");
require_once(__DIR__ . "/Renderer.php");
/* @brief modif tiki for the renderer lib */
class Tiki_Text_Diff_Renderer extends Text_Diff_Renderer
......
......@@ -818,7 +818,7 @@ class FileGalLib extends TikiLib
if (! empty($galleryId)) {
$file->setParam('galleryId', $galleryId);
}
$newName = ($newName ? $newName : $origFile->name . tra(' copy'));
$id = $file->replace($origFile->getContents(), $origFile->filetype, $newName, $file->filename);
......@@ -1067,7 +1067,7 @@ class FileGalLib extends TikiLib
global $prefs;
if ($prefs['feature_user_watches'] == 'y') {
// Deal with mail notifications.
include_once('lib/notifications/notificationemaillib.php');
include_once(__DIR__ . '/../notifications/notificationemaillib.php');
$galleryName = $this->table('tiki_file_galleries')->fetchOne('name', ['galleryId' => $galleryId]);
sendFileGalleryEmailNotification('file_gallery_changed', $galleryId, $galleryName, $name, $filename, $description, $action, $user, $fileId);
......@@ -3830,7 +3830,7 @@ class FileGalLib extends TikiLib
*/
function extractMetadataJson($file, $ispath = true, $extended = true)
{
include_once 'lib/metadata/metadatalib.php';
include_once __DIR__ . '/../metadata/metadatalib.php';
$metadata = new FileMetadata;
$filemeta = json_encode($metadata->getMetadata($file, $ispath, $extended)->typemeta['best']);
return $filemeta;
......
......@@ -46,7 +46,7 @@ if (strpos($_SERVER['SCRIPT_NAME'], basename(__FILE__)) !== false) {
exit;
}
require_once('lib/objectlib.php');
require_once(__DIR__ . '/../objectlib.php');
/**
*
......@@ -248,7 +248,7 @@ class FreetagLib extends ObjectLib
$bindvals_t[] = $numTags;
$query_t = 'SELECT o.`objectId`
$query_t = 'SELECT o.`objectId`
FROM `tiki_objects` o, `tiki_freetagged_objects` fto, `tiki_freetags` t'
. ' WHERE ' . $tag_sql
. ' AND fto.`tagId` = t.`tagId` AND o.`objectId` = fto.`objectId` ' . $mid_t
......
......@@ -1070,7 +1070,7 @@ class ImageGalsLib extends TikiLib
$logslib->add_action('Uploaded', $galleryId, 'image gallery', 'imageId=' . $imageId);
}
require_once('lib/search/refresh-functions.php');
require_once(__DIR__ . '/../search/refresh-functions.php');
refresh_index('images', $imageId);
$this->notify($imageId, $galleryId, $name, $filename, $description, isset($gal_info['name']) ? $gal_info['name'] : '', 'upload image', $user);
......@@ -2266,7 +2266,7 @@ class ImageGalsLib extends TikiLib
);
}
require_once('lib/search/refresh-functions.php');
require_once(__DIR__ . '/../search/refresh-functions.php');
refresh_index('galleries', $galleryId);
return $galleryId;
......
......@@ -17,7 +17,7 @@ if (strpos($_SERVER['SCRIPT_NAME'], basename(__FILE__)) !== false) {
exit;
}
require_once 'lib/setup/third_party.php';
require_once __DIR__ . '/../setup/third_party.php';
/**
* extends Smarty_Security
......@@ -195,10 +195,10 @@ class Smarty_Tiki extends Smarty
$this->loadFilter('pre', 'tr');
$this->loadFilter('pre', 'jq');
include_once('lib/smarty_tiki/resource.tplwiki.php');
include_once(__DIR__ . '/../smarty_tiki/resource.tplwiki.php');
$this->registerResource('tplwiki', ['smarty_resource_tplwiki_source', 'smarty_resource_tplwiki_timestamp', 'smarty_resource_tplwiki_secure', 'smarty_resource_tplwiki_trusted']);
include_once('lib/smarty_tiki/resource.wiki.php');
include_once(__DIR__ . '/../smarty_tiki/resource.wiki.php');
$this->registerResource('wiki', ['smarty_resource_wiki_source', 'smarty_resource_wiki_timestamp', 'smarty_resource_wiki_secure', 'smarty_resource_wiki_trusted']);
global $prefs;
......
......@@ -5,8 +5,8 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once('lib/language/WriteFile.php');
require_once('lib/language/File.php');
require_once(__DIR__ . '/../../language/WriteFile.php');
require_once(__DIR__ . '/../../language/File.php');
/**
* Create WriteFile objects
......
......@@ -103,7 +103,7 @@ class FileMetadata
//process basic info
if (is_array($this->basicraw)) {
require_once('lib/metadata/datatypes/basicinfo.php');
require_once(__DIR__ . '/../metadata/datatypes/basicinfo.php');
$basic = new BasicInfo;
$this->basicinfo = $basic->processRawData($this->basicraw);
}
......
......@@ -99,7 +99,7 @@ class MimeLib
private static function from_file_extension($filename)
{
global $mimetypes;
include_once('lib/mime/mimetypes.php');
include_once(__DIR__ . '/../mime/mimetypes.php');
if (isset($mimetypes)) {
$ext = self::get_extension($filename);
......
......@@ -5,7 +5,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once('lib/debug/Tracer.php');
require_once(__DIR__ . '/../debug/Tracer.php');
//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
......
......@@ -45,7 +45,7 @@ function sendForumEmailNotification(
//outbound email -> will be sent in utf8 - from sender_email
if ($forum_info['outbound_address'] && ($event == 'forum_post_thread' || $event == 'forum_post_topic')) {
include_once('lib/webmail/tikimaillib.php');
include_once(__DIR__ . '/../webmail/tikimaillib.php');
$mail = new TikiMail();
$mail->setSubject($title);
if (! empty($forum_info['outbound_mails_reply_link']) && $forum_info['outbound_mails_reply_link'] == 'y') {
......@@ -172,7 +172,7 @@ function sendForumEmailNotification(
}
if (count($nots)) {
include_once('lib/webmail/tikimaillib.php');
include_once(__DIR__ . '/../webmail/tikimaillib.php');
$smarty->assign('mail_forum', $forum_info["name"]);
$smarty->assign('mail_title', $title);
$smarty->assign('mail_date', $tikilib->now);
......@@ -364,7 +364,7 @@ function sendWikiEmailNotification(
if (count($nots)) {
$edit_data = TikiLib::htmldecode($edit_data);
include_once('lib/mail/maillib.php');
include_once(__DIR__ . '/../mail/maillib.php');
$smarty->assign('mail_site', $_SERVER["SERVER_NAME"]);
$smarty->assign('mail_page', $pageName);
$smarty->assign('mail_date', $tikilib->now);
......@@ -404,7 +404,7 @@ function sendWikiEmailNotification(
$smarty->assign('mail_action', 'edit');
}
include_once('lib/webmail/tikimaillib.php');
include_once(__DIR__ . '/../webmail/tikimaillib.php');
foreach ($nots as $not) {
if (empty($not['email'])) {
......@@ -447,7 +447,7 @@ function sendEmailNotification($watches, $dummy, $subjectTpl, $subjectParam, $tx
$tikilib = TikiLib::lib('tiki');
$userlib = TikiLib::lib('user');
include_once('lib/webmail/tikimaillib.php');
include_once(__DIR__ . '/../webmail/tikimaillib.php');
$sent = 0;
$smarty->assign('mail_date', $tikilib->now);
......@@ -623,7 +623,7 @@ function sendFileGalleryEmailNotification($event, $galleryId, $galleryName, $nam
}
if (count($nots)) {
include_once('lib/webmail/tikimaillib.php');
include_once(__DIR__ . '/../webmail/tikimaillib.php');
$smarty->assign('galleryName', $galleryName);
$smarty->assign('galleryId', $galleryId);
$smarty->assign('fileId', $fileId);
......@@ -728,7 +728,7 @@ function sendCategoryEmailNotification($values)
}
if (count($nots)) {
include_once('lib/webmail/tikimaillib.php');
include_once(__DIR__ . '/../webmail/tikimaillib.php');
$smarty->assign('categoryId', $categoryId);
$smarty->assign('categoryName', $categoryName);
......@@ -818,7 +818,7 @@ function sendStructureEmailNotification($params)
$foo = parse_url($_SERVER["REQUEST_URI"]);
$machine = $tikilib->httpPrefix(true) . dirname($foo["path"]);
$smarty->assign_by_ref('mail_machine', $machine);
include_once('lib/webmail/tikimaillib.php');
include_once(__DIR__ . '/../webmail/tikimaillib.php');
$smarty->assign_by_ref('action', $params['action']);
$smarty->assign_by_ref('page_ref_id', $params['page_ref_id']);
......
......@@ -1262,7 +1262,7 @@ class ParserLib extends TikiDb_Bridge
}
if ($prefs['feature_wiki_ext_icon'] == 'y') {
$attrib .= 'class="wiki external" ';
include_once('lib/smarty_tiki/function.icon.php');
include_once(__DIR__ . '/../smarty_tiki/function.icon.php');
$ext_icon = smarty_function_icon(['name' => 'link-external'], TikiLib::lib('smarty')->getEmptyInternalTemplate());
} else {
$attrib .= 'class="wiki" ';
......
......@@ -24,7 +24,7 @@ function smarty_prefilter_tr($source)
function _translate_lang($matches)
{
include_once('lib/init/tra.php');
include_once(__DIR__ . '/../init/tra.php');
$s = tra($matches[1]);
if ($s == $matches[1] && strstr($matches[1], '{$')) {
// The string to translate is not plain English. It contains a Smarty variable, which may prevent translation at compile time.
......
......@@ -18,7 +18,7 @@
* previously, or if you have fixed tests that were broken before.
*/
require_once('lib/debug/Tracer.php');
require_once(__DIR__ . '/../debug/Tracer.php');
class TestRunnerWithBaseline
{
......
......@@ -5,8 +5,8 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once('lib/test/TestRunnerWithBaseline.php');
require_once('lib/debug/Tracer.php');
require_once(__DIR__ . '/../test/TestRunnerWithBaseline.php');
require_once(__DIR__ . '/../debug/Tracer.php');
class TestRunnerWithBaselineTest extends PHPUnit_Framework_TestCase
{
......
......@@ -9,7 +9,7 @@
* @group integration
*/
require_once 'lib/auth/tokens.php';
require_once __DIR__ . '/../../auth/tokens.php';
class AuthTokensTest extends TikiDatabaseTestCase
{
......
......@@ -66,12 +66,12 @@ if (! $db) {
TikiDb::set($db);
global $tikilib;
require_once 'lib/tikilib.php';
require_once __DIR__ . '/../../lib/tikilib.php';
$tikilib = new TikiLib;
// update db if needed
require_once 'lib/init/initlib.php';
include_once('installer/installlib.php');
require_once __DIR__ . '/../../lib/init/initlib.php';
include_once(__DIR__ . '/../../installer/installlib.php');
$installer = new Installer;
if (! $installer->tableExists('tiki_preferences')) {
......@@ -125,7 +125,7 @@ $systemConfiguration = new Zend\Config\Config(
global $user_overrider_prefs, $prefs;
$user_overrider_prefs = [];
$prefs['language'] = 'en';
require_once 'lib/setup/prefs.php';
require_once __DIR__ . '/../../lib/setup/prefs.php';
$prefs['site_language'] = 'en';
$prefs['zend_mail_handler'] = 'file';
$prefs['feature_typo_quotes'] = 'n';
......
......@@ -32,7 +32,7 @@ class Connect_Client_Test extends TikiTestCase
{
global $TWV;
include_once('lib/setup/twversion.class.php');
include_once(__DIR__ . '/../../../setup/twversion.class.php');
$TWV = new TWVersion();
$data = $this->obj->buildConnectData(); // TODO check status etc
......
......@@ -5,7 +5,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once('lib/webmail/tikimaillib.php');
require_once(__DIR__ . '/../../../webmail/tikimaillib.php');
class Reports_SendTest extends TikiTestCase
{
......
......@@ -22,7 +22,7 @@ class Tiki_FileGallery_Manipulator_ImageTransformerTest extends TikiTestCase
$old_pref = $prefs['fgal_use_db'];
$prefs['fgal_use_db'] = 'y';
$path = 'lib/test/filegals/testdata.png';
$path = __DIR__ . '/../../../../filegals/testdata.png';
$data = file_get_contents($path);
$file = new File(['filename' => 'testdata.png', 'filetype' => 'image/png', 'data' => $data]);
......
......@@ -20,7 +20,7 @@ class Tiki_FileGallery_Manipulator_MetadataExtractorTest extends TikiTestCase
$this->oldPrefs = $prefs;
$prefs['fgal_use_db'] = 'y';
$path = 'lib/test/filegals/testdata.png';
$path = __DIR__ . '/../../../../filegals/testdata.png';
$data = file_get_contents($path);
$this->file = new File(['filename' => 'testdata.png', 'filetype' => 'image/png', 'data' => $data]);
......
......@@ -9,7 +9,7 @@ namespace Tiki\Tests\diff;
use TikiTestCase;
require_once 'lib/diff/difflib.php';
require_once __DIR__ . '/../../diff/difflib.php';
class DiffTest extends TikiTestCase
{
......
......@@ -10,7 +10,7 @@ class FilegalsTest extends TikiTestCase
function testPNGIsNotSVG()
{
$fgallib = TikiLib::lib('filegal');
$path = 'lib/test/filegals/testdata.png';
$path = __DIR__ . '/../filegals/testdata.png';
$data = file_get_contents($path);
$this->assertFalse($fgallib->fileContentIsSVG($data));
}
......@@ -18,7 +18,7 @@ class FilegalsTest extends TikiTestCase
function testSVGDetect()
{
$fgallib = TikiLib::lib('filegal');
$path = 'lib/test/filegals/testdata.svg';
$path = __DIR__ . '/../filegals/testdata.svg';
$data = file_get_contents($path);
$this->assertTrue($fgallib->fileContentIsSVG($data));
}
......@@ -26,7 +26,7 @@ class FilegalsTest extends TikiTestCase
function testCompressedPNGIsNotSVG()
{
$fgallib = TikiLib::lib('filegal');
$path = 'lib/test/filegals/testdata.png.gz';
$path = __DIR__ . '/../filegals/testdata.png.gz';
$data = file_get_contents($path);
$this->assertFalse($fgallib->fileContentIsSVG($data));
}
......@@ -34,7 +34,7 @@ class FilegalsTest extends TikiTestCase
function testSVGDetectGzipped()
{
$fgallib = TikiLib::lib('filegal');
$path = 'lib/test/filegals/testdata.svgz';
$path = __DIR__ . '/../filegals/testdata.svgz';
$data = file_get_contents($path);
$this->assertTrue($fgallib->fileContentIsSVG($data));
}
......@@ -44,7 +44,7 @@ class FilegalsTest extends TikiTestCase
global $prefs;
$prefs['fgal_allow_svg'] = 'n';
$fgallib = TikiLib::lib('filegal');
$path = 'lib/test/filegals/svg_content.png';
$path = __DIR__ . '/../filegals/svg_content.png';
$data = file_get_contents($path);
$filename = 'svg_content.png';
$caught = false;
......@@ -67,7 +67,7 @@ class FilegalsTest extends TikiTestCase
global $prefs;
$prefs['fgal_allow_svg'] = 'n';
$fgallib = TikiLib::lib('filegal');
$path = 'lib/test/filegals/4.svg';
$path = __DIR__ . '/../filegals/4.svg';
$data = file_get_contents($path);
$filename = '4.svg';
$caught = false;
......
......@@ -5,7 +5,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once 'lib/language/CollectFiles.php';
require_once __DIR__ . '/../../language/CollectFiles.php';
use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamFile;
use org\bovigo\vfs\vfsStreamDirectory;
......
......@@ -5,8 +5,8 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once('lib/language/FileType.php');
require_once('lib/language/FileType/Php.php');
require_once(__DIR__ . '/../../../language/FileType.php');
require_once(__DIR__ . '/../../../language/FileType/Php.php');
class Language_FileType_PhpTest extends TikiTestCase
{
......
......@@ -5,12 +5,12 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once('lib/language/CollectFiles.php');
require_once('lib/language/WriteFile.php');
require_once('lib/language/GetStrings.php');
require_once('lib/language/FileType.php');
require_once('lib/language/FileType/Php.php');
require_once('lib/language/FileType/Tpl.php');
require_once(__DIR__ . '/../../language/CollectFiles.php');
require_once(__DIR__ . '/../../language/WriteFile.php');
require_once(__DIR__ . '/../../language/GetStrings.php');
require_once(__DIR__ . '/../../language/FileType.php');
require_once(__DIR__ . '/../../language/FileType/Php.php');
require_once(__DIR__ . '/../../language/FileType/Tpl.php');
use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamFile;
use org\bovigo\vfs\vfsStreamDirectory;
......
......@@ -5,12 +5,12 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once('lib/language/CollectFiles.php');
require_once('lib/language/WriteFile.php');
require_once('lib/language/GetStrings.php');
require_once('lib/language/FileType.php');
require_once('lib/language/FileType/Php.php');
require_once('lib/language/FileType/Tpl.php');
require_once(__DIR__ . '/../../language/CollectFiles.php');
require_once(__DIR__ . '/../../language/WriteFile.php');
require_once(__DIR__ . '/../../language/GetStrings.php');
require_once(__DIR__ . '/../../language/FileType.php');
require_once(__DIR__ . '/../../language/FileType/Php.php');
require_once(__DIR__ . '/../../language/FileType/Tpl.php');
use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamFile;
......
......@@ -5,7 +5,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once 'lib/language/Language.php';
require_once __DIR__ . '/../../language/Language.php';
/**
* Test class for Language.
......
......@@ -5,7 +5,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once 'lib/language/LanguageTranslations.php';
require_once __DIR__ . '/../../language/LanguageTranslations.php';
/**
* Test class for LanguageTranslations.
......
......@@ -5,7 +5,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once('lib/language/MergeFiles.php');
require_once(__DIR__ . '/../../language/MergeFiles.php');
use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamFile;
......
......@@ -5,7 +5,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once('lib/language/File.php');
require_once(__DIR__ . '/../../language/File.php');
use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamFile;
......
......@@ -5,8 +5,8 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once('lib/language/Exception.php');
require_once('lib/language/WriteFile/Factory.php');
require_once(__DIR__ . '/../../../language/Exception.php');
require_once(__DIR__ . '/../../../language/WriteFile/Factory.php');
use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamFile;
......
......@@ -5,8 +5,8 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
require_once('lib/language/Exception.php');
require_once('lib/language/WriteFile.php');
require_once(__DIR__ . '/../../language/Exception.php');