mirror of
https://github.com/Mibew/mibew.git
synced 2025-04-11 10:20:12 +03:00
29 lines
693 B
PHP
29 lines
693 B
PHP
<?php
|
|
|
|
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/plugin_manager.php';
|
|
require_once dirname(__FILE__) . '/../../../../webim/libs/classes/plugin.php';
|
|
|
|
/**
|
|
* Test class for PluginManager.
|
|
* Generated by PHPUnit on 2012-07-17 at 16:09:18.
|
|
*/
|
|
class PluginManagerTest extends PHPUnit_Framework_TestCase {
|
|
|
|
public function testLoadPlugins() {
|
|
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__));
|
|
PluginManager::loadPlugins(
|
|
array(
|
|
array(
|
|
'name' => 'phpunit_autotest_plugin_manager'
|
|
)
|
|
)
|
|
);
|
|
if(empty($GLOBALS['phpunit_autotest_plugin_manager'])) {
|
|
$this->fail('Plugin not loaded and initialize correctly');
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
?>
|