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

pgsql_plugin_authpdo_test::test_requirements()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 3
eloc 4
nc 2
nop 0
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