MySqlPlatformTest.php 605 Bytes
Newer Older
1 2
<?php

3
namespace Doctrine\DBAL\Tests\Platforms;
4

5
use Doctrine\DBAL\Platforms\AbstractPlatform;
6
use Doctrine\DBAL\Platforms\MySqlPlatform;
7
use Doctrine\DBAL\TransactionIsolationLevel;
8

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

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