Passed
Push — master ( 1b6475...610123 )
by Petr
10:18
created

CommonTestClass   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
dl 0
loc 39
rs 10
c 1
b 0
f 0
wmc 5
1
<?php
2
3
use kalanis\UploadPerPartes\InfoFormat;
4
5
6
class CommonTestClass extends \PHPUnit\Framework\TestCase
7
{
8
//    public function providerBasic()
9
//    {
10
//        return Array(
11
//            0 => Array(new ORMTest()),
12
//            1 => Array(new ORMTestOld())
13
//        );
14
//    }
15
16
    protected function mockTestFile(): string
17
    {
18
        return $this->getTestDir() . 'testing.upload';
19
    }
20
21
    protected function mockSharedKey(): string
22
    {
23
        return 'driver.partial';
24
    }
25
26
    protected function getTestDir(): string
27
    {
28
        return realpath(__DIR__ . '/tmp/') . '/';
29
    }
30
31
    protected function getTestFile(): string
32
    {
33
        return realpath(__DIR__ . '/testing-ipsum.txt');
34
    }
35
36
    protected function mockData(): InfoFormat\Data
37
    {
38
        return InfoFormat\Data::init()->setData(
39
            'abcdef',
40
            $this->getTestDir() . 'abcdef',
41
            123456,
42
            12,
43
            64,
44
            7
45
        );
46
    }
47
}
48