mirror of
https://github.com/filegator/filegator.git
synced 2025-08-06 18:36:59 +02:00
42 lines
1.0 KiB
PHP
42 lines
1.0 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the FileGator package.
|
|
*
|
|
* (c) Milos Stojanovic <alcalbg@gmail.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE file
|
|
*/
|
|
|
|
namespace Tests\Unit;
|
|
|
|
use Filegator\App;
|
|
use Filegator\Config\Config;
|
|
use Filegator\Container\Container;
|
|
use Filegator\Kernel\Request;
|
|
use Filegator\Kernel\Response;
|
|
use Tests\FakeResponse;
|
|
use Tests\FakeStreamedResponse;
|
|
use Tests\TestCase;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
class MainTest extends TestCase
|
|
{
|
|
public function testMainApp()
|
|
{
|
|
$config = new Config();
|
|
$request = new Request();
|
|
$response = new FakeResponse();
|
|
$sresponse = new FakeStreamedResponse();
|
|
$container = new Container();
|
|
|
|
$app = new App($config, $request, $response, $sresponse, $container);
|
|
|
|
$this->assertEquals($config, $app->resolve(Config::class));
|
|
$this->assertEquals($request, $app->resolve(Request::class));
|
|
$this->assertInstanceOf(Response::class, $app->resolve(Response::class));
|
|
}
|
|
}
|