SQLAnywhere11PlatformTest.php 717 Bytes
Newer Older
1 2 3 4
<?php

namespace Doctrine\Tests\DBAL\Platforms;

5
use Doctrine\DBAL\Platforms\AbstractPlatform;
6 7 8 9
use Doctrine\DBAL\Platforms\SQLAnywhere11Platform;

class SQLAnywhere11PlatformTest extends SQLAnywherePlatformTest
{
Sergei Morozov's avatar
Sergei Morozov committed
10
    /** @var SQLAnywhere11Platform */
Sergei Morozov's avatar
Sergei Morozov committed
11
    protected $platform;
12

13
    public function createPlatform() : AbstractPlatform
14
    {
Sergei Morozov's avatar
Sergei Morozov committed
15
        return new SQLAnywhere11Platform();
16 17
    }

18
    public function testDoesNotSupportRegexp() : void
19 20 21 22
    {
        $this->markTestSkipped('This version of the platform now supports regular expressions.');
    }

23
    public function testGeneratesRegularExpressionSQLSnippet() : void
24
    {
Sergei Morozov's avatar
Sergei Morozov committed
25
        self::assertEquals('REGEXP', $this->platform->getRegexpExpression());
26 27
    }
}