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:
-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