File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,24 @@ protected function setUp(): void
38
38
$ this ->connection = Database::connect ();
39
39
40
40
parent ::setUp ();
41
+ $ this ->dropDatabase ();
42
+ }
43
+
44
+ protected function tearDown (): void
45
+ {
46
+ stream_filter_remove ($ this ->streamFilter );
47
+
48
+ parent ::tearDown ();
49
+ $ this ->dropDatabase ();
50
+ }
51
+
52
+ protected function getBuffer ()
53
+ {
54
+ return CITestStreamFilter::$ buffer ;
55
+ }
41
56
57
+ private function dropDatabase (): void
58
+ {
42
59
if ($ this ->connection instanceof SQLite3Connection) {
43
60
$ file = WRITEPATH . 'foobar.db ' ;
44
61
if (is_file ($ file )) {
@@ -53,18 +70,6 @@ protected function setUp(): void
53
70
}
54
71
}
55
72
56
- protected function tearDown (): void
57
- {
58
- stream_filter_remove ($ this ->streamFilter );
59
-
60
- parent ::tearDown ();
61
- }
62
-
63
- protected function getBuffer ()
64
- {
65
- return CITestStreamFilter::$ buffer ;
66
- }
67
-
68
73
public function testCreateDatabase ()
69
74
{
70
75
if ($ this ->connection instanceof OCI8Connection) {
You can’t perform that action at this time.
0 commit comments