Modify tests directory structure

This commit is contained in:
Dmitriy Simushev 2012-09-21 12:23:21 +00:00
parent 159a8aa0df
commit a9380cf307
11 changed files with 17 additions and 17 deletions

View File

@ -1,6 +1,6 @@
<?php
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/database.php';
require_once dirname(__FILE__) . '/../../../../../webim/libs/classes/database.php';
require_once dirname(__FILE__) . '/../config.php';
/**

View File

@ -1,8 +1,8 @@
<?php
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/event_dispatcher.php';
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/plugin.php';
require_once dirname(__FILE__) . '/phpunit_autotest_plugin_manager/phpunit_autotest_plugin_manager_plugin.php';
require_once dirname(__FILE__) . '/../../../../../webim/libs/classes/event_dispatcher.php';
require_once dirname(__FILE__) . '/../../../../../webim/libs/classes/plugin.php';
require_once dirname(__FILE__) . '/../../plugins/phpunit_autotest_plugin_manager/phpunit_autotest_plugin_manager_plugin.php';
/**
* Test class for EventDispatcher.

View File

@ -1,6 +1,6 @@
<?php
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/mibew_api_execution_context.php';
require_once dirname(__FILE__) . '/../../../../../webim/libs/classes/mibew_api_execution_context.php';
/**
* Test class for MibewAPIExecutionContext.

View File

@ -1,6 +1,6 @@
<?php
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/mibew_api_interaction.php';
require_once dirname(__FILE__) . '/../../../../../webim/libs/classes/mibew_api_interaction.php';
require_once dirname(__FILE__) . '/mibew_api_test_interaction.php';
/**

View File

@ -1,7 +1,7 @@
<?php
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/mibew_api.php';
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/mibew_api_interaction.php';
require_once dirname(__FILE__) . '/../../../../../webim/libs/classes/mibew_api.php';
require_once dirname(__FILE__) . '/../../../../../webim/libs/classes/mibew_api_interaction.php';
require_once dirname(__FILE__) . '/mibew_api_test_interaction.php';
/**

View File

@ -1,7 +1,7 @@
<?php
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/plugin_manager.php';
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/plugin.php';
require_once dirname(__FILE__) . '/../../../../../webim/libs/classes/plugin_manager.php';
require_once dirname(__FILE__) . '/../../../../../webim/libs/classes/plugin.php';
/**
* Test class for PluginManager.
@ -10,7 +10,7 @@ require_once dirname(__FILE__) . '/../../../../webim/libs/classes/plugin.php';
class PluginManagerTest extends PHPUnit_Framework_TestCase {
public function testLoadPlugins() {
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__));
set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__) . '/../../plugins/'));
// Try to load plugin that does not exists
// Following code wait for trigger user error, which converts by PHPUnit to an

View File

@ -1,7 +1,7 @@
<?php
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/settings.php';
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/database.php';
require_once dirname(__FILE__) . '/../../../../../webim/libs/classes/settings.php';
require_once dirname(__FILE__) . '/../../../../../webim/libs/classes/database.php';
require_once dirname(__FILE__) . '/../config.php';
/**

View File

@ -1,9 +1,9 @@
<?php
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/thread.php';
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/database.php';
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/settings.php';
require_once dirname(__FILE__) . '/../../../../webim/libs/common/locale.php';
require_once dirname(__FILE__) . '/../../../../../webim/libs/classes/thread.php';
require_once dirname(__FILE__) . '/../../../../../webim/libs/classes/database.php';
require_once dirname(__FILE__) . '/../../../../../webim/libs/classes/settings.php';
require_once dirname(__FILE__) . '/../../../../../webim/libs/common/locale.php';
require_once dirname(__FILE__) . '/../config.php';
/**