File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
tests/Doctrine/Tests/DBAL Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,11 @@ public function testExecute(array $params) : void
59
59
$ this ->equalTo ($ params [2 ])
60
60
);
61
61
62
+ // the return value is irrelevant to the test
63
+ // but it has to be compatible with the method signature
64
+ $ statement ->method ('errorInfo ' )
65
+ ->willReturn (false );
66
+
62
67
// can't pass to constructor since we don't have a real database handle,
63
68
// but execute must check the connection for the executeMode
64
69
$ conn = $ this ->getMockBuilder (OCI8Connection::class)
Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ public function testSelectGlobal() : void
47
47
{
48
48
$ conn = $ this ->createConnectionMock ();
49
49
$ conn ->expects ($ this ->once ())->method ('connect ' )->with ($ this ->equalTo (0 ));
50
+ $ conn ->method ('getParams ' )
51
+ ->willReturn ([
52
+ 'shardChoser ' => $ this ->createMock (ShardChoser::class),
53
+ ]);
50
54
51
55
$ shardManager = new PoolingShardManager ($ conn );
52
56
$ shardManager ->selectGlobal ();
You can’t perform that action at this time.
0 commit comments