tests: use MockBuilder everywhere

This commit is contained in:
Lukáš Unger
2016-07-08 15:29:21 +02:00
parent 68e4b1d390
commit 32efd091a1
9 changed files with 92 additions and 91 deletions

View File

@@ -13,7 +13,7 @@ class ResourceServerTest extends \PHPUnit_Framework_TestCase
public function testValidateAuthenticatedRequest()
{
$server = new ResourceServer(
$this->getMock(AccessTokenRepositoryInterface::class),
$this->getMockBuilder(AccessTokenRepositoryInterface::class)->getMock(),
'file://' . __DIR__ . '/Stubs/public.key'
);