diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2014-04-05 11:48:21 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2014-04-05 11:51:38 +0200 |
| commit | 06aa3d948a787b5b34f1969f7a72e45a0138e184 (patch) | |
| tree | df9420f3b6d9fce75fb96e956ba70f4334a149f3 /tests/passwords/manager_test.php | |
| parent | d0aa7c6455170396fd8b6c9add7cf2a19bb17426 (diff) | |
| download | forums-06aa3d948a787b5b34f1969f7a72e45a0138e184.tar forums-06aa3d948a787b5b34f1969f7a72e45a0138e184.tar.gz forums-06aa3d948a787b5b34f1969f7a72e45a0138e184.tar.bz2 forums-06aa3d948a787b5b34f1969f7a72e45a0138e184.tar.xz forums-06aa3d948a787b5b34f1969f7a72e45a0138e184.zip | |
[ticket/12354] Assert same instead of equal where necessary in passwords tests
In some tests we try to make sure that we do not get the same output in a
limited timeframe. These tests should use assertSame/NotSame instead of
assertEqual/NotEqual.
PHPBB3-12354
Diffstat (limited to 'tests/passwords/manager_test.php')
| -rw-r--r-- | tests/passwords/manager_test.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/passwords/manager_test.php b/tests/passwords/manager_test.php index ee295ff043..008f222696 100644 --- a/tests/passwords/manager_test.php +++ b/tests/passwords/manager_test.php @@ -273,7 +273,7 @@ class phpbb_passwords_manager_test extends PHPUnit_Framework_TestCase // Limit test to 1 second while ((microtime(true) - $time) < 1) { - $this->assertNotEquals($first_id, $this->driver_helper->unique_id()); + $this->assertNotSame($first_id, $this->driver_helper->unique_id()); } } |
