summaryrefslogtreecommitdiff
path: root/tests/Unit/ServiceProviderTest.php
blob: bf9f5e3f2df1fb729c9594296ad2cb71306ac0e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

namespace Engelsystem\Test\Unit;

use Engelsystem\Application;
use PHPUnit\Framework\MockObject\MockObject;

abstract class ServiceProviderTest extends TestCase
{
    /**
     * @param array $methods
     * @return Application|MockObject
     */
    protected function getApp($methods = ['make', 'instance'])
    {
        return $this->getMockBuilder(Application::class)
            ->setMethods($methods)
            ->getMock();
    }
}