Passed
Push — master ( bf6407...ffdf3e )
by Felipe
02:35
created

MoveUploadedFilesMiddlewareTest   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A testInvalidPathThrowException() 0 3 1
A testNotWritablePathThrowException() 0 3 1
A testMoveFileWithoutFilter() 0 3 1
A testMoveOnlyFilteredFiles() 0 3 1
A setUp() 0 5 1
1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of coisa/http.
4
 *
5
 * (c) Felipe Sayão Lobato Abreu <[email protected]>
6
 *
7
 * This source file is subject to the license that is bundled
8
 * with this source code in the file LICENSE.
9
 */
10
11
namespace CoiSA\Http\Test\Middleware;
12
13
use CoiSA\Http\Middleware\MoveUploadedFilesMiddleware;
14
use CoiSA\Http\Test\Handler\AbstractMiddlewareTest;
15
16
/**
17
 * Class MoveUploadedFilesMiddlewareTest
18
 *
19
 * @package CoiSA\Http\Test\Middleware
20
 */
21
final class MoveUploadedFilesMiddlewareTest extends AbstractMiddlewareTest
22
{
23
    public function setUp(): void
24
    {
25
        parent::setUp();
26
27
        $this->middleware = new MoveUploadedFilesMiddleware(\sys_get_temp_dir());
28
    }
29
30
    public function testInvalidPathThrowException(): void
31
    {
32
        $this->markTestIncomplete();
33
    }
34
35
    public function testNotWritablePathThrowException(): void
36
    {
37
        $this->markTestIncomplete();
38
    }
39
40
    public function testMoveFileWithoutFilter(): void
41
    {
42
        $this->markTestIncomplete();
43
    }
44
45
    public function testMoveOnlyFilteredFiles(): void
46
    {
47
        $this->markTestIncomplete();
48
    }
49
}
50