2017-10-31 13:40:13 +01:00
|
|
|
<?php
|
|
|
|
|
2023-02-03 20:41:59 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2017-10-31 13:40:13 +01:00
|
|
|
namespace Engelsystem\Test\Unit;
|
|
|
|
|
|
|
|
use Engelsystem\Application;
|
2019-04-24 10:45:00 +02:00
|
|
|
use PHPUnit\Framework\MockObject\MockObject;
|
2017-10-31 13:40:13 +01:00
|
|
|
|
|
|
|
abstract class ServiceProviderTest extends TestCase
|
|
|
|
{
|
2022-12-14 19:15:20 +01:00
|
|
|
protected function getApp(array $methods = ['make', 'instance']): Application|MockObject
|
2017-10-31 13:40:13 +01:00
|
|
|
{
|
|
|
|
return $this->getMockBuilder(Application::class)
|
2019-11-06 12:29:58 +01:00
|
|
|
->onlyMethods($methods)
|
2017-10-31 13:40:13 +01:00
|
|
|
->getMock();
|
|
|
|
}
|
|
|
|
}
|