Skip to content

Commit

Permalink
Skip PBKDF2 tests if it is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
bukka committed Dec 13, 2016
1 parent 4870424 commit 2c2a55b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/PBKDF2___clone_basic.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Crypto\PBKDF2::__clone basic usage.
--SKIPIF--
<?php if (!class_exists('Crypto\PBKDF2')) die("Skip: PBKDF2 is not supported (update OpenSSL version)"); ?>
--FILE--
<?php
function print_pbkdf2($kdf) {
Expand Down
2 changes: 2 additions & 0 deletions tests/PBKDF2___construct_basic.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Crypto\PBKDF2::__construct basic usage.
--SKIPIF--
<?php if (!class_exists('Crypto\PBKDF2')) die("Skip: PBKDF2 is not supported (update OpenSSL version)"); ?>
--FILE--
<?php
// basic creation with just hash algorithm parameter
Expand Down
2 changes: 2 additions & 0 deletions tests/PBKDF2_derive_basic.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Crypto\PBKDF2::derive basic usage.
--SKIPIF--
<?php if (!class_exists('Crypto\PBKDF2')) die("Skip: PBKDF2 is not supported (update OpenSSL version)"); ?>
--FILE--
<?php
$vectors = array(
Expand Down
2 changes: 2 additions & 0 deletions tests/PBKDF2_getHashAlgorithm_basic.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Crypto\PBKDF2::getHashAlgorithm basic usage.
--SKIPIF--
<?php if (!class_exists('Crypto\PBKDF2')) die("Skip: PBKDF2 is not supported (update OpenSSL version)"); ?>
--FILE--
<?php
$pbkdf2 = new Crypto\PBKDF2('sha256', 32);
Expand Down
2 changes: 2 additions & 0 deletions tests/PBKDF2_getIterations_basic.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Crypto\PBKDF2::getIterations basic usage.
--SKIPIF--
<?php if (!class_exists('Crypto\PBKDF2')) die("Skip: PBKDF2 is not supported (update OpenSSL version)"); ?>
--FILE--
<?php
$pbkdf2 = new Crypto\PBKDF2('sha256', 32, 'salt', 900);
Expand Down
2 changes: 2 additions & 0 deletions tests/PBKDF2_setHashAlgorithm_basic.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Crypto\PBKDF2::setHashAlgorithm basic usage.
--SKIPIF--
<?php if (!class_exists('Crypto\PBKDF2')) die("Skip: PBKDF2 is not supported (update OpenSSL version)"); ?>
--FILE--
<?php
$pbkdf2 = new Crypto\PBKDF2('sha256', 32);
Expand Down
2 changes: 2 additions & 0 deletions tests/PBKDF2_setIterations_basic.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Crypto\PBKDF2::setIterations basic usage.
--SKIPIF--
<?php if (!class_exists('Crypto\PBKDF2')) die("Skip: PBKDF2 is not supported (update OpenSSL version)"); ?>
--FILE--
<?php
$pbkdf2 = new Crypto\PBKDF2('sha256', 32);
Expand Down

0 comments on commit 2c2a55b

Please sign in to comment.