diff options
author | Marc Alexander <admin@m-a-styles.de> | 2013-10-02 23:45:32 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2013-10-02 23:45:32 +0200 |
commit | 93531e7fb0df7d9cd2de04ca06aa9eb6a847a1c4 (patch) | |
tree | 9ea36b1216786a87c151a0af1824e6eacf978fc8 /tests/security | |
parent | [feature/passwords] Fix tests after changes to phpBB hashing functions (diff) | |
download | phpbb-93531e7fb0df7d9cd2de04ca06aa9eb6a847a1c4.tar.gz phpbb-93531e7fb0df7d9cd2de04ca06aa9eb6a847a1c4.tar.bz2 phpbb-93531e7fb0df7d9cd2de04ca06aa9eb6a847a1c4.zip |
[feature/passwords] Add prepending backslash to class namespaces
PHPBB3-11610
Diffstat (limited to 'tests/security')
-rw-r--r-- | tests/security/hash_test.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/security/hash_test.php b/tests/security/hash_test.php index b4c4dba48f..76d7d22a00 100644 --- a/tests/security/hash_test.php +++ b/tests/security/hash_test.php @@ -15,14 +15,14 @@ class phpbb_security_hash_test extends phpbb_test_case { global $phpbb_container; - $config = new phpbb\config\config(array()); + $config = new \phpbb\config\config(array()); $phpbb_container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface'); - $driver_helper = new phpbb\passwords\driver\helper($config); + $driver_helper = new \phpbb\passwords\driver\helper($config); $passwords_drivers = array( - 'passwords.driver.bcrypt' => new phpbb\passwords\driver\bcrypt($config, $driver_helper), - 'passwords.driver.bcrypt_2y' => new phpbb\passwords\driver\bcrypt_2y($config, $driver_helper), - 'passwords.driver.salted_md5' => new phpbb\passwords\driver\salted_md5($config, $driver_helper), - 'passwords.driver.phpass' => new phpbb\passwords\driver\phpass($config, $driver_helper), + 'passwords.driver.bcrypt' => new \phpbb\passwords\driver\bcrypt($config, $driver_helper), + 'passwords.driver.bcrypt_2y' => new \phpbb\passwords\driver\bcrypt_2y($config, $driver_helper), + 'passwords.driver.salted_md5' => new \phpbb\passwords\driver\salted_md5($config, $driver_helper), + 'passwords.driver.phpass' => new \phpbb\passwords\driver\phpass($config, $driver_helper), ); foreach ($passwords_drivers as $key => $driver) @@ -30,9 +30,9 @@ class phpbb_security_hash_test extends phpbb_test_case $driver->set_name($key); } - $passwords_helper = new phpbb\passwords\helper; + $passwords_helper = new \phpbb\passwords\helper; // Set up passwords manager - $passwords_manager = new phpbb\passwords\manager($config, $passwords_drivers, $passwords_helper, 'passwords.driver.bcrypt_2y'); + $passwords_manager = new \phpbb\passwords\manager($config, $passwords_drivers, $passwords_helper, 'passwords.driver.bcrypt_2y'); $phpbb_container ->expects($this->any()) |