@@ -109,40 +109,4 @@ public function testGetExceptionConverter(): void
109
109
110
110
$ this ->assertSame ($ exceptionConverter , $ driver ->getExceptionConverter ());
111
111
}
112
-
113
- public function testCreateDatabasePlatform (): void
114
- {
115
- $ databasePlatform = $ this ->createMock (AbstractPlatform::class);
116
-
117
- $ decoratedDriver = $ this ->createMock (DriverInterface::class);
118
- $ decoratedDriver ->expects ($ this ->once ())
119
- ->method ('getDatabasePlatform ' )
120
- ->willReturn ($ databasePlatform );
121
-
122
- $ driver = new TracingDriverForV32 ($ this ->connectionFactory , $ decoratedDriver );
123
-
124
- $ this ->assertSame ($ databasePlatform , $ driver ->createDatabasePlatformForVersion ('5.7 ' ));
125
- }
126
-
127
- public function testCreateDatabasePlatformForVersionWhenDriverDefinedCreateDatabasePlatformForVersion (): void
128
- {
129
- $ databasePlatform = $ this ->createMock (AbstractPlatform::class);
130
-
131
- $ decoratedDriver = $ this ->createMock (StubCreateDatabasePlatformForVersionDriver::class);
132
- $ decoratedDriver ->expects ($ this ->once ())
133
- ->method ('createDatabasePlatformForVersion ' )
134
- ->with ('5.7 ' )
135
- ->willReturn ($ databasePlatform );
136
-
137
- $ driver = new TracingDriverForV32 ($ this ->connectionFactory , $ decoratedDriver );
138
-
139
- $ this ->assertSame ($ databasePlatform , $ driver ->createDatabasePlatformForVersion ('5.7 ' ));
140
- }
141
- }
142
-
143
- if (interface_exists (DriverInterface::class)) {
144
- interface StubCreateDatabasePlatformForVersionDriver extends DriverInterface
145
- {
146
- public function createDatabasePlatformForVersion (string $ version ): AbstractPlatform ;
147
- }
148
112
}
0 commit comments