11<?php
22
3+ namespace Clue \Tests \React \SQLite ;
4+
35use PHPUnit \Framework \TestCase ;
46use Clue \React \SQLite \Factory ;
57
@@ -22,7 +24,7 @@ public function testLoadLazyWithIdleOptionsReturnsDatabaseWithIdleTimeApplied()
2224
2325 $ db = $ factory ->openLazy (':memory: ' , null , ['idle ' => 10.0 ]);
2426
25- $ ref = new ReflectionProperty ($ db , 'idlePeriod ' );
27+ $ ref = new \ ReflectionProperty ($ db , 'idlePeriod ' );
2628 $ ref ->setAccessible (true );
2729 $ value = $ ref ->getValue ($ db );
2830
@@ -36,7 +38,7 @@ public function testLoadLazyWithAbsolutePathWillBeUsedAsIs()
3638
3739 $ db = $ factory ->openLazy (__DIR__ . '/users.db ' );
3840
39- $ ref = new ReflectionProperty ($ db , 'filename ' );
41+ $ ref = new \ ReflectionProperty ($ db , 'filename ' );
4042 $ ref ->setAccessible (true );
4143 $ value = $ ref ->getValue ($ db );
4244
@@ -50,7 +52,7 @@ public function testLoadLazyWithMemoryPathWillBeUsedAsIs()
5052
5153 $ db = $ factory ->openLazy (':memory: ' );
5254
53- $ ref = new ReflectionProperty ($ db , 'filename ' );
55+ $ ref = new \ ReflectionProperty ($ db , 'filename ' );
5456 $ ref ->setAccessible (true );
5557 $ value = $ ref ->getValue ($ db );
5658
@@ -64,7 +66,7 @@ public function testLoadLazyWithEmptyPathWillBeUsedAsIs()
6466
6567 $ db = $ factory ->openLazy ('' );
6668
67- $ ref = new ReflectionProperty ($ db , 'filename ' );
69+ $ ref = new \ ReflectionProperty ($ db , 'filename ' );
6870 $ ref ->setAccessible (true );
6971 $ value = $ ref ->getValue ($ db );
7072
@@ -85,7 +87,7 @@ public function testLoadLazyWithRelativePathWillBeResolvedWhenConstructingAndWil
8587
8688 chdir ('../ ' );
8789
88- $ ref = new ReflectionProperty ($ db , 'filename ' );
90+ $ ref = new \ ReflectionProperty ($ db , 'filename ' );
8991 $ ref ->setAccessible (true );
9092 $ value = $ ref ->getValue ($ db );
9193
0 commit comments