mirror of
https://github.com/Mibew/design.git
synced 2025-01-22 18:10:33 +03:00
Use camel case for plugins' classes names
This commit is contained in:
parent
9037f69c09
commit
e45a3e489f
@ -13,7 +13,7 @@ class EventDispatcherTest extends PHPUnit_Framework_TestCase {
|
|||||||
protected static $plugin = null;
|
protected static $plugin = null;
|
||||||
|
|
||||||
public static function setUpBeforeClass() {
|
public static function setUpBeforeClass() {
|
||||||
self::$plugin = new Phpunit_autotest_plugin_managerPlugin();
|
self::$plugin = new PhpunitAutotestPluginManagerPlugin();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function tearDownAfterClass() {
|
public static function tearDownAfterClass() {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
/**
|
/**
|
||||||
* Test plugin for PHPUnit tests
|
* Test plugin for PHPUnit tests
|
||||||
*/
|
*/
|
||||||
Class Phpunit_autotest_plugin_managerPlugin extends Plugin{
|
Class PhpunitAutotestPluginManagerPlugin extends Plugin{
|
||||||
|
|
||||||
public $eventsRegistered = false;
|
public $eventsRegistered = false;
|
||||||
public $listenersRegistered = false;
|
public $listenersRegistered = false;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
/**
|
/**
|
||||||
* Test plugin for PHPUnit tests
|
* Test plugin for PHPUnit tests
|
||||||
*/
|
*/
|
||||||
Class Request_processor_testPlugin extends Plugin{
|
Class RequestProcessorTestPlugin extends Plugin{
|
||||||
|
|
||||||
public $callList = array();
|
public $callList = array();
|
||||||
|
|
||||||
|
@ -93,7 +93,9 @@ Class PluginManager {
|
|||||||
$plugin_dependences = isset($plugin['dependences'])
|
$plugin_dependences = isset($plugin['dependences'])
|
||||||
? $plugin['dependences']
|
? $plugin['dependences']
|
||||||
: array();
|
: array();
|
||||||
$plugin_classname = ucfirst($plugin_name) . "Plugin";
|
$plugin_name_parts = explode('_', $plugin_name);
|
||||||
|
$plugin_name_parts = array_map('ucfirst', $plugin_name_parts);
|
||||||
|
$plugin_classname = implode('', $plugin_name_parts) . "Plugin";
|
||||||
// Check plugin dependences
|
// Check plugin dependences
|
||||||
foreach ($plugin_dependences as $dependence) {
|
foreach ($plugin_dependences as $dependence) {
|
||||||
if (empty(self::$loaded_plugins[$dependence])) {
|
if (empty(self::$loaded_plugins[$dependence])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user