MysqlPdoQueueTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createHandler() 0 9 1
1
<?php
2
3
/*
4
 * This file is part of the Phive Queue package.
5
 *
6
 * (c) Eugene Leonovich <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Phive\Queue\Tests\Queue\Pdo;
13
14
use Phive\Queue\Tests\Handler\PdoHandler;
15
16
/**
17
 * @requires extension pdo_mysql
18
 */
19
class MysqlPdoQueueTest extends PdoQueueTest
20
{
21
    public static function createHandler(array $config)
22
    {
23
        return new PdoHandler([
24
            'dsn'        => $config['PHIVE_PDO_MYSQL_DSN'],
25
            'username'   => $config['PHIVE_PDO_MYSQL_USERNAME'],
26
            'password'   => $config['PHIVE_PDO_MYSQL_PASSWORD'],
27
            'table_name' => $config['PHIVE_PDO_MYSQL_TABLE_NAME'],
28
        ]);
29
    }
30
}
31