Completed
Push — authpdo ( 44f1c4...c3f4c7 )
by Andreas
06:07 queued 01:51
created

pgsql_plugin_authpdo_test   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 3
c 2
b 0
f 1
lcom 1
cbo 1
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_requirements() 0 7 3
1
<?php
2
3
/**
4
 * pgsql tests for the authpdo plugin
5
 *
6
 * @group plugin_authpdo
7
 * @group plugins
8
 */
9
class pgsql_plugin_authpdo_test extends mysql_plugin_authpdo_test {
10
11
    protected $driver = 'pgsql';
12
13
    public function test_requirements() {
14
        parent::test_requirements();
15
16
        if(!function_exists('hash_pbkdf2') || !in_array('sha256', hash_algos())){
17
            $this->markTestSkipped("Skipped {$this->driver} tests. Missing pbkdf2 hash support to check passwords");
18
        }
19
    }
20
21
}
22