From fed4ab48a3c99140ecf904fc68ce6b84185bbb67 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Wed, 19 Feb 2014 00:45:11 +0200 Subject: Don't load password hashing compat for HHVM --- tests/codeigniter/core/compat/password_test.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/codeigniter/core/compat/password_test.php') diff --git a/tests/codeigniter/core/compat/password_test.php b/tests/codeigniter/core/compat/password_test.php index 4014e7415..c37c6ac0c 100644 --- a/tests/codeigniter/core/compat/password_test.php +++ b/tests/codeigniter/core/compat/password_test.php @@ -13,6 +13,12 @@ class password_test extends CI_TestCase { $this->assertFalse(defined('PASSWORD_BCRYPT')); return $this->markTestSkipped("PHP versions prior to 5.3.7 don't have the '2y' Blowfish version"); } + // defined as of HHVM 2.3.0, which is also when they introduce password_*() as well + // Note: Do NOT move this after the CRYPT_BLOWFISH check + elseif (defined('HHVM_VERSION')) + { + $this->markTestSkipped('HHVM 2.3.0+ already has it'); + } elseif ( ! defined('CRYPT_BLOWFISH') OR CRYPT_BLOWFISH !== 1) { $this->assertFalse(defined('PASSWORD_BCRYPT')); -- cgit v1.2.3-24-g4f1b