We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e83124b commit d4c694bCopy full SHA for d4c694b
src/Test/SharedDatabases.php
@@ -85,13 +85,14 @@ final public static function sharedDatabases(): array
85
final protected function getConnection(): Connection
86
{
87
if (method_exists($this, 'getProvidedData')) {
88
- $connection = $this->getProvidedData();
+ $connections = $this->getProvidedData();
89
} elseif (method_exists($this, 'providedData')) {
90
- $connection = $this->providedData();
+ $connections = $this->providedData();
91
} else {
92
throw new RuntimeException('Cannot get connection: Unsupported PHPUnit version?');
93
}
94
95
+ $connection = $connections[0];
96
if (! $connection instanceof Connection) {
97
throw new RuntimeException('Cannot get connection: Are all test cases using the same provider?');
98
0 commit comments