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
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2013-11-14 02:35:24 +0400
committerThomas Steur <thomas.steur@gmail.com>2013-11-14 02:35:24 +0400
commitb89bed150ee02036e0b8a3b9d4ac12f743057d93 (patch)
tree23a081abc155371d5c5c3de3c698c7cd6272928c
parent977c60552d8cb0cc207b9cb543106ca3dc63a651 (diff)
refs #4233 make sure value is either pdo or mysqli
-rw-r--r--tests/PHPUnit/Core/TravisEnvironmentTest.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/PHPUnit/Core/TravisEnvironmentTest.php b/tests/PHPUnit/Core/TravisEnvironmentTest.php
new file mode 100644
index 0000000000..6a9b44f3c7
--- /dev/null
+++ b/tests/PHPUnit/Core/TravisEnvironmentTest.php
@@ -0,0 +1,20 @@
+<?php
+
+use Piwik\Translate;
+
+/**
+ * Class TravisEnvironmentTest
+ *
+ * @group Core
+ */
+class TravisEnvironmentTest extends PHPUnit_Framework_TestCase
+{
+ public function testUsageOfCorrectMysqlAdapter()
+ {
+ $mysqlAdapter = getenv('MYSQL_ADAPTER');
+
+ if (!empty($mysqlAdapter)) {
+ $this->assertTrue(in_array($mysqlAdapter, array('PDO_MYSQL', 'MYSQLI')));
+ }
+ }
+} \ No newline at end of file