MySqlPlatformTest.php 533 Bytes
Newer Older
1 2 3 4 5
<?php

namespace Doctrine\Tests\DBAL\Platforms;

use Doctrine\DBAL\Platforms\MySqlPlatform;
6
use Doctrine\DBAL\TransactionIsolationLevel;
7

8
class MySqlPlatformTest extends AbstractMySQLPlatformTestCase
9
{
10
    public function createPlatform()
11
    {
Sergei Morozov's avatar
Sergei Morozov committed
12
        return new MySqlPlatform();
13
    }
14 15 16

    public function testHasCorrectDefaultTransactionIsolationLevel()
    {
17
        self::assertEquals(
18
            TransactionIsolationLevel::REPEATABLE_READ,
Sergei Morozov's avatar
Sergei Morozov committed
19
            $this->platform->getDefaultTransactionIsolationLevel()
20 21
        );
    }
22
}