diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-12-04 13:47:57 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-12-04 13:47:57 -0500 |
commit | 285feb49f82084b5b489aa1fc6765b9b02ea1b29 (patch) | |
tree | 3a95b7879ed73f1457b2e0ac07c5f98611152a2f /tests/lock | |
parent | [ticket/10103] Inline assignment is bad? (diff) | |
download | phpbb-285feb49f82084b5b489aa1fc6765b9b02ea1b29.tar.gz phpbb-285feb49f82084b5b489aa1fc6765b9b02ea1b29.tar.bz2 phpbb-285feb49f82084b5b489aa1fc6765b9b02ea1b29.zip |
[ticket/10103] assertLessThan/assertGreaterThan.
PHPBB3-10103
Diffstat (limited to 'tests/lock')
-rw-r--r-- | tests/lock/flock_test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lock/flock_test.php b/tests/lock/flock_test.php index abcb4e79c2..8bb7d0a041 100644 --- a/tests/lock/flock_test.php +++ b/tests/lock/flock_test.php @@ -77,7 +77,7 @@ class phpbb_lock_flock_test extends phpbb_test_case $ok = $lock->acquire(); $delta = time() - $start; $this->assertTrue($ok); - $this->assertTrue($delta > 0.5); + $this->assertGreaterThan(0.5, $delta); $lock->release(); @@ -86,7 +86,7 @@ class phpbb_lock_flock_test extends phpbb_test_case $ok = $lock->acquire(); $delta = time() - $start; $this->assertTrue($ok); - $this->assertTrue($delta < 0.1); + $this->assertLessThan(0.1, $delta); // reap the child $status = null; |