engelsystem/tests/Unit/ServiceProviderTest.php

19 lines
421 B
PHP

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