Skip to content

Commit 83cf5ef

Browse files
committed
fix proxyadaptertest
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
1 parent d45647a commit 83cf5ef

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

tests/Phinx/Db/Adapter/ProxyAdapterTest.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@ class ProxyAdapterTest extends TestCase
1818

1919
protected function setUp(): void
2020
{
21-
$stub = $this->getMockBuilder('\Phinx\Db\Adapter\PdoAdapter')
22-
->setConstructorArgs([[]])
23-
->onlyMethods([])
24-
->getMock();
21+
$stub = $this->getMockForAbstractClass(
22+
'\Phinx\Db\Adapter\PdoAdapter',
23+
[[]],
24+
'',
25+
true,
26+
true,
27+
true,
28+
['getColumnForType', 'isValidColumnType'],
29+
);
2530

2631
$stub->expects($this->any())
2732
->method('isValidColumnType')

0 commit comments

Comments
 (0)