1
1
<?php
2
2
3
+ namespace Clue \Tests \React \SQLite ;
4
+
3
5
use PHPUnit \Framework \TestCase ;
4
6
use Clue \React \SQLite \Factory ;
5
7
@@ -22,7 +24,7 @@ public function testLoadLazyWithIdleOptionsReturnsDatabaseWithIdleTimeApplied()
22
24
23
25
$ db = $ factory ->openLazy (':memory: ' , null , ['idle ' => 10.0 ]);
24
26
25
- $ ref = new ReflectionProperty ($ db , 'idlePeriod ' );
27
+ $ ref = new \ ReflectionProperty ($ db , 'idlePeriod ' );
26
28
$ ref ->setAccessible (true );
27
29
$ value = $ ref ->getValue ($ db );
28
30
@@ -36,7 +38,7 @@ public function testLoadLazyWithAbsolutePathWillBeUsedAsIs()
36
38
37
39
$ db = $ factory ->openLazy (__DIR__ . '/users.db ' );
38
40
39
- $ ref = new ReflectionProperty ($ db , 'filename ' );
41
+ $ ref = new \ ReflectionProperty ($ db , 'filename ' );
40
42
$ ref ->setAccessible (true );
41
43
$ value = $ ref ->getValue ($ db );
42
44
@@ -50,7 +52,7 @@ public function testLoadLazyWithMemoryPathWillBeUsedAsIs()
50
52
51
53
$ db = $ factory ->openLazy (':memory: ' );
52
54
53
- $ ref = new ReflectionProperty ($ db , 'filename ' );
55
+ $ ref = new \ ReflectionProperty ($ db , 'filename ' );
54
56
$ ref ->setAccessible (true );
55
57
$ value = $ ref ->getValue ($ db );
56
58
@@ -64,7 +66,7 @@ public function testLoadLazyWithEmptyPathWillBeUsedAsIs()
64
66
65
67
$ db = $ factory ->openLazy ('' );
66
68
67
- $ ref = new ReflectionProperty ($ db , 'filename ' );
69
+ $ ref = new \ ReflectionProperty ($ db , 'filename ' );
68
70
$ ref ->setAccessible (true );
69
71
$ value = $ ref ->getValue ($ db );
70
72
@@ -85,7 +87,7 @@ public function testLoadLazyWithRelativePathWillBeResolvedWhenConstructingAndWil
85
87
86
88
chdir ('../ ' );
87
89
88
- $ ref = new ReflectionProperty ($ db , 'filename ' );
90
+ $ ref = new \ ReflectionProperty ($ db , 'filename ' );
89
91
$ ref ->setAccessible (true );
90
92
$ value = $ ref ->getValue ($ db );
91
93
0 commit comments