File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,24 @@ protected function setUp(): void
3838 $ this ->connection = Database::connect ();
3939
4040 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+ }
4156
57+ private function dropDatabase (): void
58+ {
4259 if ($ this ->connection instanceof SQLite3Connection) {
4360 $ file = WRITEPATH . 'foobar.db ' ;
4461 if (is_file ($ file )) {
@@ -53,18 +70,6 @@ protected function setUp(): void
5370 }
5471 }
5572
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-
6873 public function testCreateDatabase ()
6974 {
7075 if ($ this ->connection instanceof OCI8Connection) {
You can’t perform that action at this time.
0 commit comments