Skip to content

Commit

Permalink
refs #4233 make sure value is either pdo or mysqli
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed Nov 13, 2013
1 parent 977c605 commit b89bed1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions 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')));
}
}
}

0 comments on commit b89bed1

Please sign in to comment.