Test Failed
Push — master ( 85ca69...144c12 )
by Roman
15:41
created

tests/Application/Assert/RequestAssertTest.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Tests\Crossword\Application\Assert;
6
7
use App\Crossword\Application\Assert\RequestAssert;
8
use App\Crossword\Application\Exception\RequestException;
9
use PHPUnit\Framework\TestCase;
10
use Symfony\Component\HttpFoundation\Request;
0 ignored issues
show
The type Symfony\Component\HttpFoundation\Request was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
12
/**
13
 * @coversDefaultClass \App\Crossword\Application\Assert\RequestAssert
14
 */
15
final class RequestAssertTest extends TestCase
16
{
17
    /**
18
     * @covers ::missingRequest
19
     */
20
    public function testThrowExceptionWhenRequestIsMissing(): void
21
    {
22
        $this->expectException(RequestException::class);
23
24
        RequestAssert::missingRequest(null);
25
    }
26
27
    /**
28
     * @covers ::missingRequest
29
     */
30
    public function testSuccessfullyRequest(): void
31
    {
32
        RequestAssert::missingRequest(new Request());
33
34
        self::assertTrue(true);
35
    }
36
}
37