File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Messenger \Bridge \Doctrine \Tests \Transport ;
13
13
14
- use Doctrine \DBAL \Schema \Synchronizer \SchemaSynchronizer ;
15
14
use Doctrine \DBAL \Schema \Table ;
16
15
use PHPUnit \Framework \TestCase ;
17
16
use Symfony \Component \Messenger \Bridge \Doctrine \Transport \PostgreSqlConnection ;
@@ -26,10 +25,9 @@ public function testSerialize()
26
25
$ this ->expectException (\BadMethodCallException::class);
27
26
$ this ->expectExceptionMessage ('Cannot serialize ' .PostgreSqlConnection::class);
28
27
29
- $ schemaSynchronizer = $ this ->createMock (SchemaSynchronizer::class);
30
28
$ driverConnection = $ this ->createMock (\Doctrine \DBAL \Connection::class);
31
29
32
- $ connection = new PostgreSqlConnection ([], $ driverConnection, $ schemaSynchronizer );
30
+ $ connection = new PostgreSqlConnection ([], $ driverConnection );
33
31
serialize ($ connection );
34
32
}
35
33
@@ -38,10 +36,9 @@ public function testUnserialize()
38
36
$ this ->expectException (\BadMethodCallException::class);
39
37
$ this ->expectExceptionMessage ('Cannot unserialize ' .PostgreSqlConnection::class);
40
38
41
- $ schemaSynchronizer = $ this ->createMock (SchemaSynchronizer::class);
42
39
$ driverConnection = $ this ->createMock (\Doctrine \DBAL \Connection::class);
43
40
44
- $ connection = new PostgreSqlConnection ([], $ driverConnection, $ schemaSynchronizer );
41
+ $ connection = new PostgreSqlConnection ([], $ driverConnection );
45
42
$ connection ->__wakeup ();
46
43
}
47
44
You can’t perform that action at this time.
0 commit comments