From d06265fb5785493ee845d4c4a86583402b475b60 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 16 Jul 2015 13:53:39 +0200 Subject: Unit tests for Router and PluginManager. --- tests/PluginManagerTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) mode change 100755 => 100644 tests/PluginManagerTest.php (limited to 'tests/PluginManagerTest.php') diff --git a/tests/PluginManagerTest.php b/tests/PluginManagerTest.php old mode 100755 new mode 100644 index 749ce2b5..df2614b5 --- a/tests/PluginManagerTest.php +++ b/tests/PluginManagerTest.php @@ -13,15 +13,15 @@ class PluginManagerTest extends PHPUnit_Framework_TestCase { /** * Path to tests plugin. - * @var string $_PLUGIN_PATH + * @var string $pluginPath */ - private static $_PLUGIN_PATH = 'tests/plugins'; + private static $pluginPath = 'tests/plugins'; /** * Test plugin. - * @var string $_PLUGIN_NAME + * @var string $pluginName */ - private static $_PLUGIN_NAME = 'test'; + private static $pluginName = 'test'; /** * Test plugin loading and hook execution. @@ -32,8 +32,8 @@ class PluginManagerTest extends PHPUnit_Framework_TestCase { $pluginManager = PluginManager::getInstance(); - PluginManager::$PLUGINS_PATH = self::$_PLUGIN_PATH; - $pluginManager->load(array(self::$_PLUGIN_NAME)); + PluginManager::$PLUGINS_PATH = self::$pluginPath; + $pluginManager->load(array(self::$pluginName)); $this->assertTrue(function_exists('hook_test_random')); -- cgit v1.2.3