1
0
Fork 0

Replace string namespaces with ::class

This commit is contained in:
Philipp Holzer 2019-02-24 13:40:54 +01:00
commit 5fc42a744e
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
11 changed files with 52 additions and 26 deletions

View file

@ -2,6 +2,7 @@
namespace Friendica\Test\Util;
use Friendica\Core\Renderer;
use Mockery\MockInterface;
trait RendererMockTrait
@ -21,7 +22,7 @@ trait RendererMockTrait
public function mockGetMarkupTemplate($templateName, $return = '', $times = null)
{
if (!isset($this->rendererMock)) {
$this->rendererMock = \Mockery::mock('alias:Friendica\Core\Renderer');
$this->rendererMock = \Mockery::mock('alias:' . Renderer::class);
}
$this->rendererMock
@ -42,7 +43,7 @@ trait RendererMockTrait
public function mockReplaceMacros($template, $args = [], $return = '', $times = null)
{
if (!isset($this->rendererMock)) {
$this->rendererMock = \Mockery::mock('alias:Friendica\Core\Renderer');
$this->rendererMock = \Mockery::mock('alias:' . Renderer::class);
}
$this->rendererMock