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

DriverTest   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 5
eloc 8
dl 0
loc 31
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 13 3
A testReturnsDatabaseNameWithoutDatabaseNameParameter() 0 3 1
A createDriver() 0 3 1
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