Passed
Push — master ( edb799...f409da )
by Petr
07:56
created

CommonTestClass   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1
1
<?php
2
3
class CommonTestClass extends \PHPUnit\Framework\TestCase
4
{
5
    public static function stringToResource(string $content)
6
    {
7
        $res = \kalanis\RemoteRequest\Protocols\Helper::getMemStorage();
8
        fwrite($res, $content);
9
        rewind($res);
10
        return $res;
11
    }
12
}
13