Commit 5e403613 authored by Marco Pivetta's avatar Marco Pivetta Committed by GitHub

Merge pull request #2633 from deeky666/make-sql-azure-tests-conditional

Run SQL Azure related tests conditionally
parents d8442038 bd4ea7f3
...@@ -32,6 +32,13 @@ abstract class AbstractTestCase extends \PHPUnit_Framework_TestCase ...@@ -32,6 +32,13 @@ abstract class AbstractTestCase extends \PHPUnit_Framework_TestCase
'driverOptions' => array('MultipleActiveResultSets' => false) 'driverOptions' => array('MultipleActiveResultSets' => false)
); );
$this->conn = DriverManager::getConnection($params); $this->conn = DriverManager::getConnection($params);
$serverEdition = $this->conn->fetchColumn("SELECT CONVERT(NVARCHAR(128), SERVERPROPERTY('Edition'))");
if (0 !== strpos($serverEdition, 'SQL Azure')) {
$this->markTestSkipped('SQL Azure only test.');
}
// assume database is created and schema is: // assume database is created and schema is:
// Global products table // Global products table
// Customers, Orders, OrderItems federation tables. // Customers, Orders, OrderItems federation tables.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment