Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/config_test.php3
-rw-r--r--tests/modules/Common.test.php33
2 files changed, 35 insertions, 1 deletions
diff --git a/tests/config_test.php b/tests/config_test.php
index 922a74cef3..68306bd53a 100755
--- a/tests/config_test.php
+++ b/tests/config_test.php
@@ -30,11 +30,12 @@ set_include_path(PATH_TEST_TO_ROOT
require_once PIWIK_INCLUDE_PATH . "/modules/ErrorHandler.php";
-set_error_handler('Piwik_ErrorHandler');
+//set_error_handler('Piwik_ErrorHandler');
require_once "Zend/Exception.php";
require_once "Zend/Loader.php";
+Zend_Loader::loadClass('Zend_Registry');
Zend_Loader::loadClass('Zend_Config_Ini');
Zend_Loader::loadClass('Zend_Db');
Zend_Loader::loadClass('Zend_Db_Table');
diff --git a/tests/modules/Common.test.php b/tests/modules/Common.test.php
new file mode 100644
index 0000000000..702ef95fb0
--- /dev/null
+++ b/tests/modules/Common.test.php
@@ -0,0 +1,33 @@
+<?php
+if(!defined("PATH_TEST_TO_ROOT")) {
+ define('PATH_TEST_TO_ROOT', '../..');
+}
+require_once PATH_TEST_TO_ROOT ."/tests/config_test.php";
+
+class Test_Piwik_Common extends UnitTestCase
+{
+ function __construct( $title = '')
+ {
+ parent::__construct( $title );
+ }
+
+ public function setUp()
+ {
+ }
+
+ public function tearDown()
+ {
+ }
+
+ // sanitize with magic quotes on
+ // sanitize with magic quotes off
+ // sanitize an array OK
+ // sanitize an array with bad value level1
+ // sanitize an array with bad value level2
+ // sanitize a bad string
+ // sanitize a bad integer
+ public function test_sanitizeInputValues()
+ {
+ }
+}
+?> \ No newline at end of file