From 9fdfa2ea78cee9f3d45ae96aea81d0c3e1585771 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sat, 23 Mar 2019 12:57:41 -0400 Subject: [PATCH] Make getDBPath() static --- test/ActivityPubTest.php | 2 +- test/TestConfig/SQLiteTestCase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ActivityPubTest.php b/test/ActivityPubTest.php index da8746b..537c061 100644 --- a/test/ActivityPubTest.php +++ b/test/ActivityPubTest.php @@ -19,7 +19,7 @@ class ActivityPubTest extends SQLiteTestCase $this->assertTrue( file_exists( $this->getDbPath() ) ); } - protected function getDbPath() + protected static function getDbPath() { return dirname( __FILE__ ) . '/db.sqlite'; } diff --git a/test/TestConfig/SQLiteTestCase.php b/test/TestConfig/SQLiteTestCase.php index 0ce9d97..edae374 100644 --- a/test/TestConfig/SQLiteTestCase.php +++ b/test/TestConfig/SQLiteTestCase.php @@ -28,7 +28,7 @@ abstract class SQLiteTestCase extends APTestCase return $this->conn; } - protected function getDbPath() + protected static function getDbPath() { return dirname( __FILE__ ) . '/db.sqlite'; }