diff options
Diffstat (limited to 'tests/integration/DbLockTest.php')
-rw-r--r-- | tests/integration/DbLockTest.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/integration/DbLockTest.php b/tests/integration/DbLockTest.php index 61ce3ca..e294f43 100644 --- a/tests/integration/DbLockTest.php +++ b/tests/integration/DbLockTest.php @@ -6,8 +6,11 @@ use Test\TestCase; use OCA\OJSXC\AppInfo\Application; use OCA\OJSXC\DbLock; +$time = 0; + function time() { - return DbLockTest::$time; + global $time; + return $time; } /** @@ -30,8 +33,6 @@ class DbLockTest extends TestCase { */ private $con; - public static $time; - public function setUp() { parent::setUp(); $app = new Application(); @@ -45,7 +46,8 @@ class DbLockTest extends TestCase { * and then setting a new lock. */ public function testLock() { - self::$time = 4; + global $time; + $time = 4; $this->dbLock = new DbLock( 'john', $this->container->getServer()->getDb(), @@ -61,7 +63,7 @@ class DbLockTest extends TestCase { $this->assertTrue($this->dbLock->stillLocked()); - self::$time = 5; + $time = 5; $this->dbLock2 = new DbLock( 'john', $this->container->getServer()->getDb(), |