Fix older php and phpunit version

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2016-10-17 15:45:28 +02:00
parent 3a619e3e19
commit 88a19eaa84
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 2 additions and 4 deletions

View File

@ -24,8 +24,6 @@ namespace OCA\WorkflowEngine\Tests;
use OCA\WorkflowEngine\Manager;
use OCP\IDBConnection;
use OCP\IL10N;
use OCP\IServerContainer;
use Test\TestCase;
/**
@ -45,8 +43,8 @@ class ManagerTest extends TestCase {
parent::setUp();
$this->db = \OC::$server->getDatabaseConnection();
$container = $this->createMock(IServerContainer::class);
$l = $this->createMock(IL10N::class);
$container = $this->getMockBuilder('OCP\IServerContainer')->getMock();
$l = $this->getMockBuilder('OCP\IL10N')->getMock();
$l->method('t')
->will($this->returnCallback(function($text, $parameters = []) {
return vsprintf($text, $parameters);