engelsystem/tests/Unit/ServiceProviderTest.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
395 B
PHP
Raw Normal View History

2017-10-31 13:40:13 +01:00
<?php
namespace Engelsystem\Test\Unit;
use Engelsystem\Application;
use PHPUnit\Framework\MockObject\MockObject;
2017-10-31 13:40:13 +01:00
abstract class ServiceProviderTest extends TestCase
{
protected function getApp(array $methods = ['make', 'instance']): Application|MockObject
{
return $this->getMockBuilder(Application::class)
->onlyMethods($methods)
2017-10-31 13:40:13 +01:00
->getMock();
}
}