2017-10-31 13:40:13 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
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
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param array $methods
|
2017-10-31 14:15:19 +01:00
|
|
|
* @return Application|MockObject
|
2017-10-31 13:40:13 +01:00
|
|
|
*/
|
|
|
|
protected function getApp($methods = ['make', 'instance'])
|
|
|
|
{
|
|
|
|
return $this->getMockBuilder(Application::class)
|
|
|
|
->setMethods($methods)
|
|
|
|
->getMock();
|
|
|
|
}
|
|
|
|
}
|