2727
2828trait SystemTestCaseTrait
2929{
30- public const INSTANCE_NAME = 'google-cloud-php-system-tests ' ;
31-
32- protected const TESTING_PREFIX = 'gcloud_testing_ ' ;
33- protected const TEST_TABLE_NAME = 'Users ' ;
34- protected const TEST_INDEX_NAME = 'uniqueIndex ' ;
35-
30+ private const TESTING_PREFIX = 'gcloud_testing_ ' ;
31+ private const INSTANCE_NAME = 'google-cloud-php-system-tests ' ;
32+ private const TEST_TABLE_NAME = 'Users ' ;
33+ private const TEST_INDEX_NAME = 'uniqueIndex ' ;
3634 private const DATABASE_ROLE = 'Reader ' ;
3735 private const RESTRICTIVE_DATABASE_ROLE = 'RestrictiveReader ' ;
3836
39- protected static $ client ;
40- protected static $ instance ;
41- protected static $ database ;
42- protected static $ dbName ;
43-
37+ private static $ client ;
38+ private static $ instance ;
39+ private static $ database ;
40+ private static $ dbName ;
4441 private static $ hasSetUp = false ;
4542
46- protected static function getClient ()
43+ private static function getClient ()
4744 {
4845 if (self ::$ client ) {
4946 return self ::$ client ;
@@ -74,7 +71,7 @@ protected static function getClient()
7471 return self ::$ client = new SpannerClient ($ clientConfig );
7572 }
7673
77- protected static function setUpTestDatabase (): void
74+ private static function setUpTestDatabase (): void
7875 {
7976 if (self ::$ hasSetUp ) {
8077 return ;
@@ -125,12 +122,12 @@ protected static function setUpTestDatabase(): void
125122 self ::$ hasSetUp = true ;
126123 }
127124
128- public static function getDatabaseInstance ($ dbName , $ options = [])
125+ private static function getDatabaseInstance ($ dbName , $ options = [])
129126 {
130- return self ::getClient ()->connect (SystemTestCaseTrait ::INSTANCE_NAME , $ dbName , $ options );
127+ return self ::getClient ()->connect (self ::INSTANCE_NAME , $ dbName , $ options );
131128 }
132129
133- public static function skipEmulatorTests ()
130+ private static function skipEmulatorTests ()
134131 {
135132 if (self ::isEmulatorUsed ()) {
136133 self ::markTestSkipped ('This test is not supported by the emulator. ' );
@@ -149,7 +146,7 @@ public static function isEmulatorUsed(): bool
149146 return (bool ) getenv ('SPANNER_EMULATOR_HOST ' );
150147 }
151148
152- public static function getDbWithReaderRole ()
149+ private static function getDbWithReaderRole ()
153150 {
154151 return self ::getDatabaseFromInstance (
155152 self ::INSTANCE_NAME ,
@@ -158,7 +155,7 @@ public static function getDbWithReaderRole()
158155 );
159156 }
160157
161- public static function getDbWithRestrictiveRole ()
158+ private static function getDbWithRestrictiveRole ()
162159 {
163160 return self ::getDatabaseFromInstance (
164161 self ::INSTANCE_NAME ,
@@ -173,7 +170,7 @@ private static function getDatabaseFromInstance($instance, $dbName, $options = [
173170 return $ instance ->database ($ dbName , $ options );
174171 }
175172
176- protected static function getCacheItemPool ()
173+ private static function getCacheItemPool ()
177174 {
178175 return new FilesystemAdapter (
179176 directory: __DIR__ . '/../../../.cache '
0 commit comments