Completed
Pull Request — develop (#3562)
by Sergei
72:46 queued 07:36
created

DriverTest::createDriver()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Tests\DBAL\Functional\Driver\PDOSqlite;
6
7
use Doctrine\DBAL\Driver\PDOSqlite\Driver;
8
use Doctrine\Tests\DBAL\Functional\Driver\AbstractDriverTest;
9
use function extension_loaded;
10
11
class DriverTest extends AbstractDriverTest
12
{
13
    protected function setUp() : void
14
    {
15
        if (! extension_loaded('pdo_sqlite')) {
16
            $this->markTestSkipped('pdo_sqlite is not installed.');
17
        }
18
19
        parent::setUp();
20
21
        if ($this->connection->getDriver() instanceof Driver) {
22
            return;
23
        }
24
25
        $this->markTestSkipped('pdo_sqlite only test.');
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function testReturnsDatabaseNameWithoutDatabaseNameParameter()
32
    {
33
        $this->markTestSkipped('SQLite does not support the concept of a database.');
34
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    protected function createDriver()
40
    {
41
        return new Driver();
42
    }
43
}
44